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