From 92d521912e01d0eee2791873ff80931d312873e9 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:48:44 -0500 Subject: [PATCH] Unexport NewNopSystemInfo --- diagnostics.go | 4 ++-- server.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/diagnostics.go b/diagnostics.go index 16ef71ad8..11d3f5b9c 100644 --- a/diagnostics.go +++ b/diagnostics.go @@ -267,8 +267,8 @@ type SystemInfo interface { MemUsed() (uint64, error) } -// NewNopSystemInfo creates a no-op implementation of SystemInfo. -func NewNopSystemInfo() *NopSystemInfo { +// newNopSystemInfo creates a no-op implementation of SystemInfo. +func newNopSystemInfo() *NopSystemInfo { return &NopSystemInfo{} } diff --git a/server.go b/server.go index 2a7d7d783..6ee4c6c60 100644 --- a/server.go +++ b/server.go @@ -236,7 +236,7 @@ func NewServer(opts ...ServerOption) (*Server, error) { cluster: newCluster(), holder: NewHolder(), diagnostics: newDiagnosticsCollector(defaultDiagnosticServer), - systemInfo: NewNopSystemInfo(), + systemInfo: newNopSystemInfo(), gcNotifier: NopGCNotifier,