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



##########
File path: config/config_loader.go
##########
@@ -138,6 +140,17 @@ func loadConsumerConfig() {
                ref.Implement(rpcService)
        }
 
+       // Write current configuration to cache file.
+       if consumerConfig.CacheFile != "" {
+               if data, err := yaml.MarshalYML(consumerConfig); err != nil {
+                       logger.Errorf("Marshal consumer config err: %s", 
err.Error())
+               } else {
+                       if err := ioutil.WriteFile(consumerConfig.CacheFile, 
data, 0666); err != nil {

Review comment:
       I can not get this point. why will you copy this config to a new 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