IsRunning reports whether the recovery processor is currently active.
()
| 94 | |
| 95 | // IsRunning reports whether the recovery processor is currently active. |
| 96 | func (p *QueuedTransactionRecoveryProcessor) IsRunning() bool { |
| 97 | p.mu.Lock() |
| 98 | defer p.mu.Unlock() |
| 99 | return p.running |
| 100 | } |
| 101 | |
| 102 | // run executes the poll loop that periodically scans for stuck queued transactions. |
| 103 | func (p *QueuedTransactionRecoveryProcessor) run(ctx context.Context) { |