Skip to content

Commit ed069e8

Browse files
committed
fix flush after close in statsbatcher
1 parent 2adfd5c commit ed069e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/batchstats/batcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ func (b *Batcher) Add(
175175
// Run runs the batcher.
176176
func (b *Batcher) run(ctx context.Context) {
177177
// nolint:gocritic // This is only ever used for one thing - inserting agent stats.
178-
authCtx := dbauthz.AsSystemRestricted(ctx)
178+
authCtx := dbauthz.AsSystemRestricted(context.Background())
179179
for {
180180
select {
181181
case <-b.tickCh:

0 commit comments

Comments
 (0)