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

Method retryLoop

enterprise/coderd/connectionlog/connectionlog.go:459–463  ·  view source on GitHub ↗

retryLoop is a single background goroutine that processes failed batches from retryCh. Each batch is retried up to maxRetries times with a fixed delay between attempts. When draining is set (shutdown), batches get a single immediate write attempt instead. The loop exits when retryCh is closed by the

()

Source from the content-addressed store, hash-verified

457// batches get a single immediate write attempt instead. The loop exits
458// when retryCh is closed by the run goroutine.
459func (b *DBBatcher) retryLoop() {
460 for params := range b.retryCh {
461 b.retryBatch(params)
462 }
463}
464
465// retryBatch retries writing a batch up to maxRetries times with a
466// fixed delay between attempts. If the batcher context is canceled

Callers 1

NewDBBatcherFunction · 0.95

Calls 1

retryBatchMethod · 0.95

Tested by

no test coverage detected