mirror of
https://github.com/Luzifer/ots.git
synced 2024-10-01 01:06:09 -04:00
Fix: Incorrect conversion between integer types
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
880ee5851a
commit
be4a0ec91d
@ -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 New Issue
Block a user