From 631ee915df0d3991b91835db6c888e660330382e Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:48:38 -0500 Subject: [PATCH] Unexport NewNopInternalQueryClient --- client.go | 4 ++-- executor.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client.go b/client.go index 671bd2a76..5a1ed97c1 100644 --- a/client.go +++ b/client.go @@ -62,11 +62,11 @@ func (n *NopInternalQueryClient) QueryNode(ctx context.Context, uri *URI, index return nil, nil } -func NewNopInternalQueryClient() *NopInternalQueryClient { +func newNopInternalQueryClient() *NopInternalQueryClient { return &NopInternalQueryClient{} } -var _ InternalQueryClient = NewNopInternalQueryClient() +var _ InternalQueryClient = newNopInternalQueryClient() //=============== diff --git a/executor.go b/executor.go index 9b7f5d4bb..579a9aa9d 100644 --- a/executor.go +++ b/executor.go @@ -67,7 +67,7 @@ func optExecutorInternalQueryClient(c InternalQueryClient) executorOption { // newExecutor returns a new instance of Executor. func newExecutor(opts ...executorOption) *executor { e := &executor{ - client: NewNopInternalQueryClient(), + client: newNopInternalQueryClient(), } for _, opt := range opts { err := opt(e)