Skip to content
Snippets Groups Projects
Commit a0529a7f authored by Ian Luo's avatar Ian Luo
Browse files

make map with init size

parent 44650adf
No related branches found
No related tags found
No related merge requests found
......@@ -49,8 +49,8 @@ func BuildCache(invokers []protocol.Invoker) *InvokerCache {
return &InvokerCache{
invokers: invokers,
bitmap: utils.ToBitmap(invokers),
pools: make(map[string]router.AddrPool),
metadatas: make(map[string]router.AddrMetadata),
pools: make(map[string]router.AddrPool, 8),
metadatas: make(map[string]router.AddrMetadata, 8),
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment