Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 280d521

Browse files
committed
Refactor DBCache to remove unused timer function
1 parent 5078c2a commit 280d521

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

coderd/cryptokeys/dbkeycache.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,6 @@ func checkKey(key database.CryptoKey, now time.Time) (codersdk.CryptoKey, error)
189189
return db2sdk.CryptoKey(key), nil
190190
}
191191

192-
func (d *DBCache) newTimer() *quartz.Timer {
193-
return d.clock.AfterFunc(time.Minute*10, d.clear)
194-
}
195-
196192
func (d *DBCache) Close() {
197193
d.keysMu.Lock()
198194
defer d.keysMu.Unlock()

0 commit comments

Comments
 (0)