diff --git a/pkg/adapter/dubboregistry/registry/zookeeper/application_service_listener.go b/pkg/adapter/dubboregistry/registry/zookeeper/application_service_listener.go index 22ff1b6f3..8ae17827d 100644 --- a/pkg/adapter/dubboregistry/registry/zookeeper/application_service_listener.go +++ b/pkg/adapter/dubboregistry/registry/zookeeper/application_service_listener.go @@ -18,7 +18,6 @@ package zookeeper import ( - "dubbo.apache.org/dubbo-go/v3/registry/servicediscovery" "encoding/json" "fmt" "strings" @@ -31,17 +30,18 @@ import ( dubboConst "dubbo.apache.org/dubbo-go/v3/common/constant" "dubbo.apache.org/dubbo-go/v3/metadata/definition" dr "dubbo.apache.org/dubbo-go/v3/registry" + "dubbo.apache.org/dubbo-go/v3/registry/servicediscovery" "dubbo.apache.org/dubbo-go/v3/remoting/zookeeper/curator_discovery" - "github.com/dubbo-go-pixiu/pixiu-api/pkg/api/config" - "github.com/dubbogo/go-zookeeper/zk" -) -import ( "github.com/apache/dubbo-go-pixiu/pkg/adapter/dubboregistry/common" "github.com/apache/dubbo-go-pixiu/pkg/adapter/dubboregistry/registry" "github.com/apache/dubbo-go-pixiu/pkg/adapter/dubboregistry/remoting/zookeeper" "github.com/apache/dubbo-go-pixiu/pkg/common/constant" "github.com/apache/dubbo-go-pixiu/pkg/logger" + + "github.com/dubbo-go-pixiu/pixiu-api/pkg/api/config" + + "github.com/dubbogo/go-zookeeper/zk" ) var _ registry.Listener = new(applicationServiceListener) diff --git a/pkg/adapter/dubboregistry/registry/zookeeper/registry.go b/pkg/adapter/dubboregistry/registry/zookeeper/registry.go index b8c90c1e3..67f11e4bb 100644 --- a/pkg/adapter/dubboregistry/registry/zookeeper/registry.go +++ b/pkg/adapter/dubboregistry/registry/zookeeper/registry.go @@ -18,23 +18,23 @@ package zookeeper import ( - hessian "github.com/apache/dubbo-go-hessian2" "strings" "time" ) -import ( - "github.com/pkg/errors" -) - import ( dubboCommon "dubbo.apache.org/dubbo-go/v3/common" + + hessian "github.com/apache/dubbo-go-hessian2" + "github.com/apache/dubbo-go-pixiu/pkg/adapter/dubboregistry/common" "github.com/apache/dubbo-go-pixiu/pkg/adapter/dubboregistry/registry" baseRegistry "github.com/apache/dubbo-go-pixiu/pkg/adapter/dubboregistry/registry/base" zk "github.com/apache/dubbo-go-pixiu/pkg/adapter/dubboregistry/remoting/zookeeper" "github.com/apache/dubbo-go-pixiu/pkg/common/constant" "github.com/apache/dubbo-go-pixiu/pkg/model" + + "github.com/pkg/errors" ) var (