chore: clean up dbpurge after the chatd refactor (#26344)

Addresses
https://github.com/coder/coder/pull/26109#discussion_r3379072397 and
https://github.com/coder/coder/pull/26109#discussion_r3379093655.
This commit is contained in:
Hugo Dutka
2026-06-16 14:01:31 +02:00
committed by GitHub
parent f08bb652b4
commit 62288782fc
3 changed files with 31 additions and 45 deletions
+1 -1
View File
@@ -1158,7 +1158,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
defer shutdownConns()
// Ensures that old database entries are cleaned up over time!
purger := dbpurge.New(ctx, logger.Named("dbpurge"), options.Database, options.DeploymentValues, options.PrometheusRegistry, &coderAPI.Auditor)
purger := dbpurge.New(ctx, logger.Named("dbpurge"), options.Database, options.DeploymentValues, options.PrometheusRegistry)
defer purger.Close()
// Updates workspace usage