This commit is contained in:
parent
1a7819e703
commit
62a37d7342
6
core.go
6
core.go
@ -699,9 +699,9 @@ func (cr *Core) GetExpiration(per string) (time.Duration, error) {
|
||||
return 0, err
|
||||
}
|
||||
exp, err := cr.PeriodToMinutes(per)
|
||||
length, _ := cr.Cfg.Config.Get("sortedSet").Get("length").String()
|
||||
ln := ToInt64(length)
|
||||
dur := time.Duration(exp*ln) * time.Minute
|
||||
length, _ := cr.Cfg.Config.Get("sortedSet").Get("length").Int64()
|
||||
logrus.Info("length of sortedSet: ", length)
|
||||
dur := time.Duration(exp*length) * time.Minute
|
||||
return dur, err
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user