aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2026-01-17 19:57:28 +0100
committerWilliam Hergès <william@herges.fr>2026-01-17 19:57:28 +0100
commitec5cfa632eeb607351f67bad6686ec872291bd61 (patch)
treec53b9bf7e14c44b49a17f088737b35eb5ad0b64e /main.go
parentc9129c2e7edcf6e588cac674dfdb240f1714083d (diff)
perf(command): top now partially uses state
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go
index 0d5bcd3..1012f19 100644
--- a/main.go
+++ b/main.go
@@ -99,7 +99,7 @@ func main() {
SetHandler(commands.ConfigCommand)
topCmd := cmd.New("top", "Copaings les plus actifs").
- SetHandler(commands.Top)
+ SetHandler(commands.Top(ctx))
resetCmd := cmd.New("reset", "Reset l'xp").
SetHandler(commands.Reset).
@@ -293,4 +293,8 @@ func main() {
if stopPeriodicReducer != nil {
stopPeriodicReducer <- true
}
+
+ if stopPeriodicSaver != nil {
+ stopPeriodicSaver <- true
+ }
}