From db665116828a1cd3581f949aaeb29cac42db1ab8 Mon Sep 17 00:00:00 2001 From: futreall <86553580+futreall@users.noreply.github.com> Date: Wed, 5 Feb 2025 19:49:20 +0200 Subject: [PATCH] Fix spelling issues (#3700) Signed-off-by: futreall <86553580+futreall@users.noreply.github.com> --- api/admin/service.go | 2 +- api/health/health_test.go | 2 +- api/health/worker.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/admin/service.go b/api/admin/service.go index 39e60c08b0a1..b36f916486d6 100644 --- a/api/admin/service.go +++ b/api/admin/service.go @@ -296,7 +296,7 @@ type GetLoggerLevelArgs struct { func (a *Admin) GetLoggerLevel(_ *http.Request, args *GetLoggerLevelArgs, reply *LoggerLevelReply) error { a.Log.Debug("API called", zap.String("service", "admin"), - zap.String("method", "getLoggerLevels"), + zap.String("method", "getLoggerLevel"), logging.UserString("loggerName", args.LoggerName), ) diff --git a/api/health/health_test.go b/api/health/health_test.go index d4970273b3f8..74e7e9dd8e98 100644 --- a/api/health/health_test.go +++ b/api/health/health_test.go @@ -47,7 +47,7 @@ func awaitLiveness(t *testing.T, r Reporter, liveness bool) { }, awaitTimeout, awaitFreq) } -func TestDuplicatedRegistations(t *testing.T) { +func TestDuplicatedRegistrations(t *testing.T) { require := require.New(t) check := CheckerFunc(func(context.Context) (interface{}, error) { diff --git a/api/health/worker.go b/api/health/worker.go index ee9b7bbe85d6..27e234d27344 100644 --- a/api/health/worker.go +++ b/api/health/worker.go @@ -24,7 +24,7 @@ var ( allTags = []string{AllTag} errRestrictedTag = errors.New("restricted tag") - errDuplicateCheck = errors.New("duplicated check") + errDuplicateCheck = errors.New("duplicate check") ) type worker struct {