FoghostCn commented on code in PR #2538:
URL: https://github.com/apache/dubbo-go/pull/2538#discussion_r1424995606


##########
config/application_config.go:
##########
@@ -37,8 +37,9 @@ type ApplicationConfig struct {
        Owner        string `default:"dubbo-go" yaml:"owner" 
json:"owner,omitempty" property:"owner"`
        Environment  string `yaml:"environment" json:"environment,omitempty" 
property:"environment"`
        // the metadata type. remote or local
-       MetadataType string `default:"local" yaml:"metadata-type" 
json:"metadataType,omitempty" property:"metadataType"`
-       Tag          string `yaml:"tag" json:"tag,omitempty" property:"tag"`
+       MetadataType        string `default:"local" yaml:"metadata-type" 
json:"metadataType,omitempty" property:"metadataType"`
+       Tag                 string `yaml:"tag" json:"tag,omitempty" 
property:"tag"`
+       MetadataServicePort int    `default:"20001" 
yaml:"metadata_service_port" json:"metadata_service_port,omitempty" 
property:"metadata_service_port"`

Review Comment:
   should not set a default value, when use it you don't know is user set it or 
default value used



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