Unexport NewNopSystemInfo

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

View file

@ -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{}
}

View file

@ -236,7 +236,7 @@ func NewServer(opts ...ServerOption) (*Server, error) {
cluster: newCluster(),
holder: NewHolder(),
diagnostics: newDiagnosticsCollector(defaultDiagnosticServer),
systemInfo: NewNopSystemInfo(),
systemInfo: newNopSystemInfo(),
gcNotifier: NopGCNotifier,