Skip to content

Commit

Permalink
Method name fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crystal Lemire committed Nov 29, 2023
1 parent e367785 commit 1c644a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocol/daemons/server/types/health_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1c644a1

Please sign in to comment.