Skip to content

Commit 65fbacc

Browse files
authored
Merge pull request #72 from codeGROOVE-dev/reliable
Simplify DM handling
2 parents 059d690 + 839979b commit 65fbacc

26 files changed

+2018
-1949
lines changed

cmd/server/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ func runBotCoordinators(
730730
defer cleanupTicker.Stop()
731731

732732
// Run cleanup once on startup
733+
//nolint:contextcheck // Background cleanup should complete even during shutdown
733734
go func() {
734735
if err := stateStore.Cleanup(context.Background()); err != nil {
735736
slog.Warn("initial state cleanup failed", "error", err)
@@ -764,6 +765,7 @@ func runBotCoordinators(
764765

765766
case <-cleanupTicker.C:
766767
// Periodic cleanup of old state data
768+
//nolint:contextcheck // Background cleanup should complete even during shutdown
767769
go func() {
768770
if err := stateStore.Cleanup(context.Background()); err != nil {
769771
slog.Warn("state cleanup failed", "error", err)

0 commit comments

Comments
 (0)