Unexport NewNopInternalQueryClient

This commit is contained in:
Cody Soyland 2018-07-05 21:48:38 -05:00
parent 0907ee5854
commit 631ee915df
2 changed files with 3 additions and 3 deletions

View file

@ -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()
//===============

View file

@ -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)