Skip to content

Commit 7176e82

Browse files
ivanauthclaude
andcommitted
fix: add GUARDED_BY annotations to readiness Gate fields
Add required mutex guard annotations for the lint analyzer. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d29d9d9 commit 7176e82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/middleware/readiness/readiness.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ type Gate struct {
4747
sfGroup singleflight.Group
4848

4949
mu sync.RWMutex
50-
cachedReady bool
51-
cachedMessage string
52-
cacheTime time.Time
50+
cachedReady bool // GUARDED_BY(mu)
51+
cachedMessage string // GUARDED_BY(mu)
52+
cacheTime time.Time // GUARDED_BY(mu)
5353
}
5454

5555
// NewGate creates a new readiness gate with the given checker.

0 commit comments

Comments
 (0)