From cf8c7930956a8796e72c63f217bd247b21dcf2e2 Mon Sep 17 00:00:00 2001 From: wei cheng Date: Mon, 24 Jun 2019 10:48:56 +0800 Subject: [PATCH] fix typo, remove discovery as default --- pkg/net/rpc/warden/README.md | 2 +- pkg/net/rpc/warden/client.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/net/rpc/warden/README.md b/pkg/net/rpc/warden/README.md index 3f8021442..127502949 100644 --- a/pkg/net/rpc/warden/README.md +++ b/pkg/net/rpc/warden/README.md @@ -1,4 +1,4 @@ -#### net/rcp/warden +#### net/rpc/warden ##### 项目简介 diff --git a/pkg/net/rpc/warden/client.go b/pkg/net/rpc/warden/client.go index 97a7af882..62ef411d4 100644 --- a/pkg/net/rpc/warden/client.go +++ b/pkg/net/rpc/warden/client.go @@ -169,7 +169,6 @@ func NewClient(conf *ClientConfig, opt ...grpc.DialOption) *Client { // DefaultClient returns a new default Client instance with a default client interceptor and default dialoption. // opt can be used to add grpc dial options. func DefaultClient() *Client { - resolver.Register(discovery.Builder()) _once.Do(func() { _defaultClient = NewClient(nil) })