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

Function BatcherWithBatchSize

coderd/workspacestats/batcher.go:67–71  ·  view source on GitHub ↗

BatcherWithBatchSize sets the number of stats to store in a batch.

(size int)

Source from the content-addressed store, hash-verified

65
66// BatcherWithBatchSize sets the number of stats to store in a batch.
67func BatcherWithBatchSize(size int) BatcherOption {
68 return func(b *DBBatcher) {
69 b.batchSize = size
70 }
71}
72
73// BatcherWithInterval sets the interval for flushes.
74func BatcherWithInterval(d time.Duration) BatcherOption {

Callers 1

TestDeploymentInsightsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestDeploymentInsightsFunction · 0.74