sanxun0325 commented on code in PR #1926:
URL: https://github.com/apache/dubbo-go/pull/1926#discussion_r892401012
##########
common/metadata_info.go:
##########
@@ -87,10 +87,10 @@ func (mi *MetadataInfo) CalAndGetRevision() string {
if len(mi.Services) == 0 {
return "0"
}
- candidates := make([]string, 8)
+ candidates := make([]string, 0, 8)
for _, s := range mi.Services {
- sk := s.ServiceKey
+ sk := s.URL.GetParam(constant.InterfaceKey, "")
Review Comment:
获取interfaceKey,变量名sk改一下吧
--
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]