Skip to content

Commit 732c37a

Browse files
committed
lock debug
1 parent 3158546 commit 732c37a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

staticaddr/deposit/manager.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,6 @@ func (m *Manager) startDepositFsm(ctx context.Context, deposit *Deposit) error {
432432
func (m *Manager) GetActiveDepositsInState(stateFilter fsm.StateType) (
433433
[]*Deposit, error) {
434434

435-
m.mu.Lock()
436-
defer m.mu.Unlock()
437-
438435
var deposits []*Deposit
439436
for _, fsm := range m.activeDeposits {
440437
deposits = append(deposits, fsm.deposit)
@@ -467,9 +464,6 @@ func (m *Manager) GetActiveDepositsInState(stateFilter fsm.StateType) (
467464
func (m *Manager) AllOutpointsActiveDeposits(outpoints []wire.OutPoint,
468465
targetState fsm.StateType) ([]*Deposit, bool) {
469466

470-
m.mu.Lock()
471-
defer m.mu.Unlock()
472-
473467
_, deposits := m.toActiveDeposits(&outpoints)
474468
if deposits == nil {
475469
return nil, false

0 commit comments

Comments
 (0)