justxuewei commented on code in PR #1855:
URL: https://github.com/apache/dubbo-go/pull/1855#discussion_r884800423
##########
config/rest_config.go:
##########
@@ -46,12 +59,94 @@ func (c *RestConsumerConfig) UnmarshalYAML(unmarshal
func(interface{}) error) er
return nil
}
+
+func (c *RestConsumerConfig) Init(rc *RootConfig) error {
+ restConsumerConfig := rc.RestConsumer
+
+ if restConsumerConfig == nil {
+ logger.Debugf("[rest-protocol] no consumer config")
+ return nil
+ }
+
+ restConsumerServiceConfigMap := make(map[string]*RestServiceConfig,
len(restConsumerConfig.RestServiceConfigsMap))
Review Comment:
Please fix this lint problem.
--
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]