luckyxiaoqiang commented on a change in pull request #1030:
URL: https://github.com/apache/dubbo-go/pull/1030#discussion_r583306641



##########
File path: common/config/environment.go
##########
@@ -72,22 +72,34 @@ func (env *Environment) UpdateExternalConfigMap(externalMap 
map[string]string) {
        for k, v := range externalMap {
                env.externalConfigMap.Store(k, v)
        }
+       env.externalConfigMap.Range(func(key, value interface{}) bool {
+               if _, ok := externalMap[key.(string)]; !ok {
+                       env.externalConfigMap.Delete(key)

Review comment:
       Units tests already covered, please see the change of test file.




----------------------------------------------------------------
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.

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