Skip to content

Commit

Permalink
fix: increase bid processing timeout (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloknerurkar authored and mrekucci committed Oct 22, 2024
1 parent b2d4c2b commit f45f3d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/pkg/preconfirmation/preconfirmation.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ func (p *Preconfirmation) handleBid(
}
}()

// try to enqueue for 5 seconds
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
// try to get a decision within 30 seconds
ctx, cancel := context.WithTimeout(ctx, 30*time.Second)
defer cancel()

statusC, err := p.processer.ProcessBid(ctx, bid)
Expand Down

0 comments on commit f45f3d3

Please sign in to comment.