Skip to content

Commit

Permalink
fix: to ensure replyCh won't be blocked
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolly23 committed Jun 26, 2024
1 parent 507d745 commit 834336e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/bid_simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ func (b *bidSimulator) sendBid(_ context.Context, bid *types.Bid) error {
timer := time.NewTimer(1 * time.Second)
defer timer.Stop()

replyCh := make(chan error)
replyCh := make(chan error, 1)

select {
case b.newBidCh <- newBidPackage{bid: bid, feedback: replyCh}:
Expand Down

0 comments on commit 834336e

Please sign in to comment.