(cfg *config.Configuration, retryCount int)
| 171 | } |
| 172 | |
| 173 | func 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 | |
| 180 | func shouldRejectLockContentionImmediately(cfg *config.Configuration, err error) bool { |
| 181 | if cfg == nil || !cfg.Queue.RejectLockContentionImmediately { |
no outgoing calls