mirror of
https://github.com/lukaszraczylo/traefikoidc.git
synced 2026-10-17 04:37:48 +00:00
fixup! fixup! Further pursue of perfection.
This commit is contained in:
+3
-1
@@ -263,7 +263,9 @@ func (tc *TokenCache) Delete(token string) {
|
||||
// This is typically called automatically but can be invoked manually for
|
||||
// removing expired token entries.
|
||||
func (tc *TokenCache) Cleanup() {
|
||||
tc.cache.Cleanup()
|
||||
if tc != nil && tc.cache != nil {
|
||||
tc.cache.Cleanup()
|
||||
}
|
||||
}
|
||||
|
||||
// Close stops the cleanup goroutine and releases resources.
|
||||
|
||||
Reference in New Issue
Block a user