Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Commit

Permalink
ignore error if bid is already in BidStatusAwaitingProposal
Browse files Browse the repository at this point in the history
Signed-off-by: Merlin Ran <merlinran@gmail.com>
  • Loading branch information
merlinran committed Aug 4, 2021
1 parent fa8401a commit 464f657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions service/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,10 @@ func (s *Store) SetAwaitingProposalCid(id auction.BidID) error {
if err != nil {
return err
}
if b.Status == BidStatusAwaitingProposal {
log.Infof("bid %s already in '%s', duplicated message?", b.ID, b.Status)
return nil
}
if b.Status != BidStatusSubmitted {
return fmt.Errorf("expect bid to have status '%s', got '%s'", BidStatusSubmitted, b.Status)
}
Expand Down

0 comments on commit 464f657

Please sign in to comment.