Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanTinianov committed Nov 10, 2023
1 parent 6ebe03a commit 347689e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/txmgr/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (tr *Tracker[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) SetEnabledA
tr.lock.Lock()
defer tr.lock.Unlock()
if tr.isTracking {
return errors.New("cannot set enabled addresses while already isTracking")
return errors.New("cannot set enabled addresses while already tracking")
}

if len(enabledAddrs) == 0 {
Expand All @@ -108,7 +108,7 @@ func (tr *Tracker[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) TrackAbando
tr.lock.Lock()
defer tr.lock.Unlock()
if tr.isTracking {
return errors.New("already isTracking abandoned txes")
return errors.New("already tracking abandoned txes")
}
defer func() {
if err == nil {
Expand Down Expand Up @@ -172,7 +172,7 @@ func (tr *Tracker[CHAIN_ID, ADDR, TX_HASH, BLOCK_HASH, R, SEQ, FEE]) GetAbandone
tr.lock.Lock()
defer tr.lock.Unlock()
if !tr.isTracking {
tr.lggr.Warn("not isTracking abandoned txes")
tr.lggr.Warn("not tracking abandoned txes")
}

addrs := make([]ADDR, len(tr.txCache))
Expand Down

0 comments on commit 347689e

Please sign in to comment.