From a096b7e5d4672f431c2197437234910aa33461a7 Mon Sep 17 00:00:00 2001 From: wanshuangcheng <166296003+wanshuangcheng@users.noreply.github.com> Date: Mon, 8 Apr 2024 16:15:44 +0800 Subject: [PATCH] chore: fix function names in comment (#7723) Signed-off-by: wanshuangcheng --- internal/api/ui/login/device_auth.go | 2 +- internal/command/restrictions.go | 2 +- internal/eventstore/handler/v2/handler.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/api/ui/login/device_auth.go b/internal/api/ui/login/device_auth.go index 2135772e4..b05cc1a5f 100644 --- a/internal/api/ui/login/device_auth.go +++ b/internal/api/ui/login/device_auth.go @@ -76,7 +76,7 @@ func (l *Login) renderDeviceAuthDone(w http.ResponseWriter, r *http.Request, aut } } -// handleDeviceUserCode serves the Device Authorization user code submission form. +// handleDeviceAuthUserCode serves the Device Authorization user code submission form. // The "user_code" may be submitted by URL (GET) or form (POST). // When a "user_code" is received and found through query, // handleDeviceAuthUserCode will create a new AuthRequest in the repository. diff --git a/internal/command/restrictions.go b/internal/command/restrictions.go index e47a0e8c0..2e609029c 100644 --- a/internal/command/restrictions.go +++ b/internal/command/restrictions.go @@ -37,7 +37,7 @@ func (s *SetRestrictions) Validate(defaultLanguage language.Tag) error { return nil } -// SetRestrictions creates new restrictions or updates existing restrictions. +// SetInstanceRestrictions creates new restrictions or updates existing restrictions. func (c *Commands) SetInstanceRestrictions( ctx context.Context, setRestrictions *SetRestrictions, diff --git a/internal/eventstore/handler/v2/handler.go b/internal/eventstore/handler/v2/handler.go index 401d80a74..02afc58ca 100644 --- a/internal/eventstore/handler/v2/handler.go +++ b/internal/eventstore/handler/v2/handler.go @@ -421,7 +421,7 @@ func (h *Handler) Trigger(ctx context.Context, opts ...TriggerOpt) (_ context.Co } } -// lockInstances tries to lock the instance. +// lockInstance tries to lock the instance. // If the instance is already locked from another process no cancel function is returned // the instance can be skipped then // If the instance is locked, an unlock deferrable function is returned