Skip to content

Commit

Permalink
tx: Removed wg delcare at start func
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin committed Apr 20, 2020
1 parent df4d561 commit 23ce95b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tx/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func NewTransactionManager(ks *keystore.KeyStore, backend *ethclient.Client, db

taskCh: make(chan *RawTransaction, MaxNumTask),

wg: new(sync.WaitGroup),
quit: make(chan struct{}),
}

Expand Down Expand Up @@ -258,7 +259,6 @@ func (tm *TransactionManager) Count(account accounts.Account, tx *types.Transact
}

func (tm *TransactionManager) Start() {
tm.wg = new(sync.WaitGroup)
tm.wg.Add(1)
go tm.confirmLoop()

Expand Down

0 comments on commit 23ce95b

Please sign in to comment.