aboutsummaryrefslogtreecommitdiff
path: root/xp
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-07-01 14:48:07 +0200
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-07-01 14:48:07 +0200
commit91f71b33cd0e34526a1c5786dbb3ce59e97e59e0 (patch)
tree41ff14397498cb57426d4e0cc9222a93c35b8574 /xp
parent5b0d9e4dd3b4744c75bbca337e5ec89e5ac4d063 (diff)
fix(reduce): wrong key while fetching last event
Diffstat (limited to 'xp')
-rw-r--r--xp/member.go2
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 {