diff options
| author | William Hergès <william@herges.fr> | 2026-01-17 19:57:28 +0100 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2026-01-17 19:57:28 +0100 |
| commit | ec5cfa632eeb607351f67bad6686ec872291bd61 (patch) | |
| tree | c53b9bf7e14c44b49a17f088737b35eb5ad0b64e /main.go | |
| parent | c9129c2e7edcf6e588cac674dfdb240f1714083d (diff) | |
perf(command): top now partially uses state
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 + } } |
