-
Notifications
You must be signed in to change notification settings - Fork 7
Tweaks for the simpler auctioneer winner selection flow #23
Conversation
e68fb11
to
0973909
Compare
Signed-off-by: Sander Pick <sanderpick@gmail.com>
0973909
to
ae8a536
Compare
@@ -41,10 +41,9 @@ type Bid struct { | |||
|
|||
// WinningBid contains details about a winning bid. | |||
type WinningBid struct { | |||
BidderID peer.ID | |||
Acknowledged bool // Whether or not the bidder acknowledged receipt of the win |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acknowledged
: No longer needed because winners that's don't ack they have won are not selected. This happens in-line during winner selection.ProposalCidAcknowledged
: No longer needed because when winners don't ack the proposal cid delivery, an error is stored in the new fieldErrorCause
and returned to the broker. In this case, the broker would have to decide what to do. Most likely retrying and/or recreating the auction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Sorry for the late - I thought it would be reviewed together with the other PR.
lib/auction/auction.go
Outdated
@@ -41,10 +41,9 @@ type Bid struct { | |||
|
|||
// WinningBid contains details about a winning bid. | |||
type WinningBid struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh wait @sanderpick just realized that bidbot doesn't use this struct at all! We could simply move this altogether to the storage broker code to remove dependency - if you think it's okay.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yeah, good point. I'll move it over to the other PR and update this one
Signed-off-by: Sander Pick <sanderpick@gmail.com>
Moved models to core... merging this one now. |
WinningBid
model (see below).