diff --git a/myregistry/consul/resolver.go b/myregistry/consul/resolver.go index 4bde5d7..dd183c7 100644 --- a/myregistry/consul/resolver.go +++ b/myregistry/consul/resolver.go @@ -2,12 +2,12 @@ package consul import ( "fmt" + "sort" + "time" + "github.com/hashicorp/consul/api" "github.com/pkg/errors" "google.golang.org/grpc/resolver" - "sort" - "strings" - "time" ) const schemeName = "consul" @@ -116,7 +116,7 @@ func (c *consulResolver) watchService() { if err != nil { defaultLog.Errorf("%s update service state err: %s", err, c.tgt.String()) } else { - defaultLog.Infof("%s update service num:%d (%s)", c.tgt.String(), len(addrs), strings.Join(addrs, ", ")) + //defaultLog.Infof("%s update service num:%d (%s)", c.tgt.String(), len(addrs), strings.Join(addrs, ", ")) }