Fixes crash due to server.diagnostics.server not set

This commit is contained in:
Yuce Tekol 2018-04-27 15:11:15 +03:00
parent dbc4e150e2
commit 75bd93d895
No known key found for this signature in database
GPG key ID: CB59E46D2FB90573

View file

@ -220,6 +220,7 @@ func NewServer(opts ...ServerOption) (*Server, error) {
logger: NopLogger,
}
s.diagnostics.server = s
for _, opt := range opts {
err := opt(s)