New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Market decentralized - provider counter draft proposal #418
Market decentralized - provider counter draft proposal #418
Conversation
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.
just started to read
core/market/decentralized/migrations/2020-05-15-093513_init-db/up.sql
Outdated
Show resolved
Hide resolved
Co-authored-by: Piotr Chromiec <tworec@golem.network>
// Map model events to client RequestorEvent. | ||
let db = self.db(); | ||
Ok(futures::stream::iter(events) | ||
.then(|event| event.into_client_requestor_event(&db)) |
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.
same here
.then(|event| event.into_client_requestor_event(&db)) | |
.then(|event| event.into_client_requestor_event(&self.common.db)) |
.filter_map(|event| event.ok()) | ||
.collect::<Vec<RequestorEvent>>()) | ||
fn db(&self) -> DbExecutor { | ||
self.common.db.clone() |
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.
not needed
@@ -29,6 +29,8 @@ pub enum RemoteProposalError { | |||
Unsubscribed(SubscriptionId), | |||
#[error("Offer/Demand [{0}] expired.")] | |||
Expired(SubscriptionId), | |||
#[error("Trying to counter not existing Proposal [{0}].")] | |||
ProposalNotFound(ProposalId), |
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.
we are in the context of Proposal and this will always be used like RemoteProposalError::NotFound
ProposalNotFound(ProposalId), | |
NotFound(ProposalId), |
.requestor_engine | ||
.query_events(&demand_id, 1.2, Some(5)) | ||
.await?; | ||
let proposal0 = requestor::expect_proposal(events)?; |
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.
would be good to assert proposal0
props below eg. status Initial
71e8ac7
to
8aecb3e
Compare
71e8ac7
to
b077496
Compare
resolves: #363
resolves: #376