Currently, only one expired token is removed on any given cleanup run. This is because the value of Bucket.Delete() is immediately returned when looping over all expired tokens.
This PR fixes this issue and adds a test which verifies the behavior.
PS: I hope this is the intended behavior, I only stumbled upon this repo very recently ;) nice job btw!
Currently, only one expired token is removed on any given cleanup run. This is because the value of
Bucket.Delete()
is immediately returned when looping over all expired tokens.This PR fixes this issue and adds a test which verifies the behavior.
PS: I hope this is the intended behavior, I only stumbled upon this repo very recently ;) nice job btw!