Convert minutes (in ms) to minutes (in s)

This commit is contained in:
Peter Stuifzand 2018-03-28 13:47:47 +02:00
parent 191297bc32
commit 92a23e7810

View File

@ -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")