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

Method batchLen

enterprise/coderd/connectionlog/connectionlog.go:278–280  ·  view source on GitHub ↗

batchLen returns the total number of entries currently buffered.

()

Source from the content-addressed store, hash-verified

276
277// batchLen returns the total number of entries currently buffered.
278func (b *DBBatcher) batchLen() int {
279 return len(b.dedupedBatch) + len(b.nullConnIDBatch)
280}
281
282func (b *DBBatcher) run(ctx context.Context) {
283 //nolint:gocritic // System-level batch operation for connection logs.

Callers 4

Test_addToBatchFunction · 0.95
runMethod · 0.95
flushMethod · 0.95
buildParamsMethod · 0.95

Calls

no outgoing calls

Tested by 1

Test_addToBatchFunction · 0.76