marsevilspirit commented on code in PR #2862:
URL: https://github.com/apache/dubbo-go/pull/2862#discussion_r2077235600


##########
config/root_config.go:
##########
@@ -367,3 +372,27 @@ func (rc *RootConfig) Process(event 
*config_center.ConfigChangeEvent) {
        // dynamically update metric
        rc.Metrics.DynamicUpdateProperties(updateRootConfig.Metrics)
 }
+
+func validateRegistryAddresses(registries map[string]*RegistryConfig) error {
+       cacheKeyMap := make(map[string]string)

Review Comment:
   可以提前分配空间
   cacheKeyMap := make(map[string]string, len(registries))



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to