Skip to content

Commit

Permalink
Avoid deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Oct 2, 2023
1 parent ee72ced commit 3241e77
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions suave/backends/local_store_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,10 @@ func (l *LocalConfidentialStore) FetchBidsByProtocolAndBlock(blockNumber uint64,

res := []suave.Bid{}
for _, id := range bidIDs {
bid, err := l.FetchBidById(id)
if err != nil {
continue
bid, found := l.bids[id]
if found {
res = append(res, bid)
}
res = append(res, bid)
}

return res
Expand Down

0 comments on commit 3241e77

Please sign in to comment.