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, }