cleanup
This commit is contained in:
parent
1bdb6009cf
commit
b071c473f0
1 changed files with 1 additions and 1 deletions
2
jwt.go
2
jwt.go
|
|
@ -166,7 +166,7 @@ func (jwt *JWT) clean() {
|
||||||
t.Stop()
|
t.Stop()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
now := time.Now().UTC().Unix()
|
now := Now()
|
||||||
for k, v := range jwt.blacklist.Map() {
|
for k, v := range jwt.blacklist.Map() {
|
||||||
if now > v {
|
if now > v {
|
||||||
jwt.blacklist.Remove(k)
|
jwt.blacklist.Remove(k)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue