diff options
| author | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-07-01 14:48:07 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me> | 2024-07-01 14:48:07 +0200 |
| commit | 91f71b33cd0e34526a1c5786dbb3ce59e97e59e0 (patch) | |
| tree | 41ff14397498cb57426d4e0cc9222a93c35b8574 | |
| parent | 5b0d9e4dd3b4744c75bbca337e5ec89e5ac4d063 (diff) | |
fix(reduce): wrong key while fetching last event
| -rw-r--r-- | xp/member.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xp/member.go b/xp/member.go index 639e0d6..b4fee22 100644 --- a/xp/member.go +++ b/xp/member.go @@ -113,7 +113,7 @@ func (c *Copaing) HourSinceLastEvent() uint { utils.SendAlert("xp/member.go - Getting redis client (get)", err.Error()) return 0 } - res := client.Get(context.Background(), fmt.Sprintf("%s:%s", c.GenKey(""), LastEvent)) + res := client.Get(context.Background(), c.GenKey(LastEvent)) if errors.Is(res.Err(), redis.Nil) { return 0 } else if res.Err() != nil { |
