-
Notifications
You must be signed in to change notification settings - Fork 63
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
WIP TerminateAgreement endpoint #792
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.
It's ok.
You only need on_agreement_terminated
implementation in negotiation/common.rs
.
counter!("market.agreements.requestor.terminated", 1); | ||
log::info!( | ||
"Requestor {} terminated Agreement [{}] and sent to Provider.", | ||
DisplayIdentity(&id), |
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.
Note for future: in #754 you can do id.display()
Some(agreement) => agreement, | ||
}; | ||
|
||
Err(match agreement.state { |
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 a note for future: We have such match on states in many places in code. Maybe we should refactor it somehow to remove duplication?
4f12495
to
05ad9c0
Compare
@jiivan Your branch must begin with |
05ad9c0
to
1aa89e7
Compare
…centralized/termag-ep
fixes: #727