Fix: Incorrect conversion between integer types
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
880ee5851a
commit
be4a0ec91d
1 changed files with 2 additions and 2 deletions
|
@ -77,12 +77,12 @@ func (s storageRedis) redisExpiry() int {
|
|||
return 0
|
||||
}
|
||||
|
||||
e, err := strconv.ParseInt(expStr, 10, 64)
|
||||
e, err := strconv.Atoi(expStr)
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
|
||||
return int(e)
|
||||
return e
|
||||
}
|
||||
|
||||
func (s storageRedis) redisKey() string {
|
||||
|
|
Loading…
Reference in a new issue