Skip to content

Commit

Permalink
Merge pull request #1684 from OffchainLabs/data-poster-lock-retry
Browse files Browse the repository at this point in the history
If the data poster fails to acquire the redis lock, retry quicker
  • Loading branch information
PlasmaPower authored Jun 8, 2023
2 parents c4dbf09 + 87bdee7 commit 58a23c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbnode/dataposter/data_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (p *DataPoster[Meta]) Start(ctxIn context.Context) {
p.mutex.Lock()
defer p.mutex.Unlock()
if !p.redisLock.AttemptLock(ctx) {
return p.replacementTimes[0]
return minWait
}
err := p.updateBalance(ctx)
if err != nil {
Expand Down

0 comments on commit 58a23c8

Please sign in to comment.