From 1c644a1c5c20169eea6e17308f6ceb96e3272f69 Mon Sep 17 00:00:00 2001 From: Crystal Lemire Date: Wed, 29 Nov 2023 12:31:23 -0800 Subject: [PATCH] Method name fix. --- protocol/daemons/server/types/health_monitor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocol/daemons/server/types/health_monitor.go b/protocol/daemons/server/types/health_monitor.go index 81768279de8..f248a306685 100644 --- a/protocol/daemons/server/types/health_monitor.go +++ b/protocol/daemons/server/types/health_monitor.go @@ -37,9 +37,9 @@ func NewHealthMonitorMutableState() *healthMonitorMutableState { } } -// DisableforTesting disables the health monitor mutable state from receiving updates. This prevents the monitor +// DisableForTesting disables the health monitor mutable state from receiving updates. This prevents the monitor // from registering services when called before app initialization and is used for testing. -func (ms *healthMonitorMutableState) DisableforTesting() { +func (ms *healthMonitorMutableState) DisableForTesting() { ms.Lock() defer ms.Unlock() @@ -126,7 +126,7 @@ func NewHealthMonitor( } func (hm *HealthMonitor) DisableForTesting() { - hm.mutableState.DisableforTesting() + hm.mutableState.DisableForTesting() } // RegisterServiceWithCallback registers a HealthCheckable with the health monitor. If the service