Skip to content

Commit 1dd2205

Browse files
committed
Add initialization comment for db key cache timer
1 parent 48b1b3b commit 1dd2205

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

coderd/cryptokeys/dbkeycache.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ func newDBCache(logger slog.Logger, db database.Store, feature database.CryptoKe
7171
opt(d)
7272
}
7373

74+
// Initialize the timer. This will get properly initialized the first time we fetch.
7475
d.timer = d.clock.AfterFunc(never, d.clear)
7576

7677
return d

0 commit comments

Comments
 (0)