MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / hasReachedMaxRetryAttempt

Function hasReachedMaxRetryAttempt

cmd/workers.go:173–178  ·  view source on GitHub ↗
(cfg *config.Configuration, retryCount int)

Source from the content-addressed store, hash-verified

171}
172
173func hasReachedMaxRetryAttempt(cfg *config.Configuration, retryCount int) bool {
174 if cfg == nil || cfg.Queue.MaxRetryAttempts <= 0 {
175 return false
176 }
177 return retryCount >= cfg.Queue.MaxRetryAttempts
178}
179
180func shouldRejectLockContentionImmediately(cfg *config.Configuration, err error) bool {
181 if cfg == nil || !cfg.Queue.RejectLockContentionImmediately {

Callers 2

processTransactionMethod · 0.85

Calls

no outgoing calls

Tested by 1