| 11 | ) |
| 12 | |
| 13 | type txManager struct { |
| 14 | lifecycle core.ComponentLifecycle |
| 15 | |
| 16 | db *DB |
| 17 | statusManager *StatusManager |
| 18 | |
| 19 | activeTxs sync.Map |
| 20 | activeTxCount atomic.Int64 |
| 21 | |
| 22 | maxActiveTxs int64 |
| 23 | configMu sync.RWMutex |
| 24 | } |
| 25 | |
| 26 | func newTxManager(db *DB, sm *StatusManager) *txManager { |
| 27 | return &txManager{ |
nothing calls this directly
no outgoing calls
no test coverage detected