fix typo, remove discovery as default

pull/161/head
wei cheng 5 years ago
parent 64495e5362
commit cf8c793095
No known key found for this signature in database
GPG Key ID: 5AF7E34E6A971D7F
  1. 2
      pkg/net/rpc/warden/README.md
  2. 1
      pkg/net/rpc/warden/client.go

@ -1,4 +1,4 @@
#### net/rcp/warden #### net/rpc/warden
##### 项目简介 ##### 项目简介

@ -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. // DefaultClient returns a new default Client instance with a default client interceptor and default dialoption.
// opt can be used to add grpc dial options. // opt can be used to add grpc dial options.
func DefaultClient() *Client { func DefaultClient() *Client {
resolver.Register(discovery.Builder())
_once.Do(func() { _once.Do(func() {
_defaultClient = NewClient(nil) _defaultClient = NewClient(nil)
}) })

Loading…
Cancel
Save