From 0907ee585426a3da133f10fed2c3d79cda5929ea Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:48:32 -0500 Subject: [PATCH] Unexport NewNopInternalClient --- client.go | 4 ++-- cluster.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 5c51ae63f..671bd2a76 100644 --- a/client.go +++ b/client.go @@ -72,11 +72,11 @@ var _ InternalQueryClient = NewNopInternalQueryClient() type NopInternalClient struct{} -func NewNopInternalClient() NopInternalClient { +func newNopInternalClient() NopInternalClient { return NopInternalClient{} } -var _ InternalClient = NewNopInternalClient() +var _ InternalClient = newNopInternalClient() func (n NopInternalClient) MaxShardByIndex(context.Context) (map[string]uint64, error) { return nil, nil diff --git a/cluster.go b/cluster.go index 45bbb835d..226221b99 100644 --- a/cluster.go +++ b/cluster.go @@ -227,7 +227,7 @@ func newCluster() *cluster { closing: make(chan struct{}), joining: make(chan struct{}), - InternalClient: NewNopInternalClient(), + InternalClient: newNopInternalClient(), logger: NopLogger, }