Skip to content

Commit 318a984

Browse files
committed
fix: improve comment wording for API keys retention
1 parent bd8e537 commit 318a984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/database/dbpurge/dbpurge.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ func New(ctx context.Context, logger slog.Logger, db database.Store, vals *coder
9191
}
9292
if apiKeysRetention > 0 {
9393
// Delete keys that have been expired for at least the retention period.
94-
// This allows the backend to return a more helpful error when a user
95-
// tries to use an expired key.
94+
// A higher retention period allows the backend to return a more helpful
95+
// error message when a user tries to use an expired key.
9696
deleteExpiredKeysBefore := start.Add(-apiKeysRetention)
9797
expiredAPIKeys, err = tx.DeleteExpiredAPIKeys(ctx, database.DeleteExpiredAPIKeysParams{
9898
Before: dbtime.Time(deleteExpiredKeysBefore),

0 commit comments

Comments
 (0)