diff --git a/registry/service_instance.go b/registry/service_instance.go index 7adbef2bc1a615af6f4f66fb37bca5738b96e50f..197695cfad4ab789384337d7107f7e21bbb7dd33 100644 --- a/registry/service_instance.go +++ b/registry/service_instance.go @@ -19,11 +19,17 @@ package registry import ( "encoding/json" + "strconv" +) + +import ( + gxsort "github.com/dubbogo/gost/sort" +) + +import ( "github.com/apache/dubbo-go/common" "github.com/apache/dubbo-go/common/constant" "github.com/apache/dubbo-go/common/logger" - gxsort "github.com/dubbogo/gost/sort" - "strconv" ) // ServiceInstance is the model class of an instance of a service, which is used for service registration and discovery. @@ -62,6 +68,7 @@ type ServiceInstance interface { // GetAddress GetAddress() string + // SetServiceMetadata SetServiceMetadata(info *common.MetadataInfo) }