We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94563ef commit e27e905Copy full SHA for e27e905
coderd/workspaceapps/stats.go
@@ -363,8 +363,6 @@ func (sc *StatsCollector) start() {
363
case reportFlushDone = <-sc.opts.Flush:
364
}
365
366
- // Ensure we don't hold up this request for too long. Add a few
367
- // seconds to prevent very short intervals from causing a timeout.
368
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
369
//nolint:gocritic // Inserting app stats is a system function.
370
_ = sc.flush(dbauthz.AsSystemRestricted(ctx))
0 commit comments