luckyxiaoqiang commented on a change in pull request #1030:
URL: https://github.com/apache/dubbo-go/pull/1030#discussion_r583305328
##########
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:
Please see the issue comment:
https://github.com/apache/dubbo-go/issues/729#issuecomment-681617545.
----------------------------------------------------------------
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]