From 550e03976cee2a099e578d0bb2c5f5bd0a05f42e Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 26 Sep 2026 02:42:43 -0400 Subject: [PATCH] refactor(api): shorten the grant touch comment --- core/apiauth/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/apiauth/service.go b/core/apiauth/service.go index 4cbf25eea..f16fef5fb 100644 --- a/core/apiauth/service.go +++ b/core/apiauth/service.go @@ -232,7 +232,7 @@ func (s *Service) settleEpoch(ctx context.Context, grantID string) (*model.Grant return g, u, nil } -// touch writes last_used at most every touchInterval (a zero lastUsed means never); the SQL condition keeps that true across nodes. +// touch writes last_used at most every touchInterval (zero lastUsed: never used); the SQL condition holds that across nodes. func (s *Service) touch(ctx context.Context, id, ip string, lastUsed time.Time) { now := s.now() if !lastUsed.IsZero() && now.Before(lastUsed.Add(touchInterval)) {