Skip to content

Commit

Permalink
chore: fix some function names (#28251)
Browse files Browse the repository at this point in the history
Signed-off-by: crystalstall <crystalruby@qq.com>
  • Loading branch information
crystalstall authored Sep 4, 2024
1 parent 789f9b7 commit 8dee06f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helper/locking/core_locking.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
)

// ParseDeadlockDetectionSetting takes the detectDeadlockConfigParameter string
// ParseDetectDeadlockConfigParameter takes the detectDeadlockConfigParameter string
// and transforms it to a lowercase version of the string, then splits it into
// a slice of strings by interpreting commas as the element delimiters.
func ParseDetectDeadlockConfigParameter(detectDeadlockConfigParameter string) []string {
Expand Down
2 changes: 1 addition & 1 deletion internalshared/configutil/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ func (l *Listener) parseProfilingSettings() error {
return nil
}

// parseProfilingSettings attempts to parse the raw listener in-flight request logging settings.
// parseInFlightRequestSettings attempts to parse the raw listener in-flight request logging settings.
// The state of the listener will be modified, raw data will be cleared upon
// successful parsing.
func (l *Listener) parseInFlightRequestSettings() error {
Expand Down
2 changes: 1 addition & 1 deletion vault/ha_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"time"
)

// TestGrabLockOrStopped is a non-deterministic test to detect deadlocks in the
// TestGrabLockOrStop is a non-deterministic test to detect deadlocks in the
// grabLockOrStopped function. This test starts a bunch of workers which
// continually lock/unlock and rlock/runlock the same RWMutex. Each worker also
// starts a goroutine which closes the stop channel 1/2 the time, which races
Expand Down

0 comments on commit 8dee06f

Please sign in to comment.