mochengqian commented on code in PR #1477:
URL: https://github.com/apache/dubbo-admin/pull/1477#discussion_r3427024122
##########
pkg/config/app/admin.go:
##########
@@ -171,9 +182,42 @@ func (c AdminConfig) Validate() error {
} else if err := c.EventBus.Validate(); err != nil {
return bizerror.Wrap(err, bizerror.ConfigError, "event bus
config validation failed")
}
+ if c.Versioning == nil {
+ c.Versioning = versioning.Default()
+ } else if err := c.Versioning.Validate(); err != nil {
+ return bizerror.Wrap(err, bizerror.ConfigError, "versioning
config validation failed")
+ }
return nil
}
+func (c *AdminConfig) ensureDefaults() {
Review Comment:
确认意义不大,已删除
--
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]