MCPcopy Index your code
hub / github.com/coder/coder / BatcherWithInterval

Function BatcherWithInterval

coderd/workspacestats/batcher.go:74–78  ·  view source on GitHub ↗

BatcherWithInterval sets the interval for flushes.

(d time.Duration)

Source from the content-addressed store, hash-verified

72
73// BatcherWithInterval sets the interval for flushes.
74func BatcherWithInterval(d time.Duration) BatcherOption {
75 return func(b *DBBatcher) {
76 b.interval = d
77 }
78}
79
80// BatcherWithLogger sets the logger to use for logging.
81func BatcherWithLogger(log slog.Logger) BatcherOption {

Callers 3

TestDeploymentInsightsFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestDeploymentInsightsFunction · 0.74