Convert minutes (in ms) to minutes (in s)
This commit is contained in:
parent
191297bc32
commit
92a23e7810
|
@ -196,7 +196,7 @@ func (h *microsubHandler) cachedCheckAuthToken(header string, r *TokenResponse)
|
|||
log.Printf("Error while setting token: %v\n", err)
|
||||
return authorized
|
||||
}
|
||||
_, err = h.Redis.Do("EXPIRE", key, uint64(10*time.Minute))
|
||||
_, err = h.Redis.Do("EXPIRE", key, uint64(10*time.Minute/time.Second))
|
||||
if err != nil {
|
||||
log.Printf("Error while setting expire on token: %v\n", err)
|
||||
log.Println("Deleting token")
|
||||
|
|
Loading…
Reference in New Issue
Block a user