add forgotten server changes which support AE test

This commit is contained in:
Matt Jaffee 2018-08-09 16:07:05 -05:00
parent b761121f47
commit ab63c8e7b6
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -232,11 +232,12 @@ func OptServerClusterHasher(h Hasher) ServerOption {
// NewServer returns a new instance of Server.
func NewServer(opts ...ServerOption) (*Server, error) {
s := &Server{
closing: make(chan struct{}),
cluster: newCluster(),
holder: NewHolder(),
diagnostics: newDiagnosticsCollector(defaultDiagnosticServer),
systemInfo: newNopSystemInfo(),
closing: make(chan struct{}),
cluster: newCluster(),
holder: NewHolder(),
diagnostics: newDiagnosticsCollector(defaultDiagnosticServer),
systemInfo: newNopSystemInfo(),
defaultClient: nopInternalClient{},
gcNotifier: NopGCNotifier,
@ -246,6 +247,9 @@ func NewServer(opts ...ServerOption) (*Server, error) {
logger: NopLogger,
}
s.executor = newExecutor(optExecutorInternalQueryClient(s.defaultClient))
s.cluster.InternalClient = s.defaultClient
s.diagnostics.server = s
for _, opt := range opts {