chore: fix some function names (#28251)

Signed-off-by: crystalstall <crystalruby@qq.com>
This commit is contained in:
crystalstall
2024-09-04 21:38:52 +08:00
committed by GitHub
parent 789f9b7821
commit 8dee06f977
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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