-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Cleanup stratum a bit #11161
Cleanup stratum a bit #11161
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,10 +55,7 @@ pub trait JobDispatcher: Send + Sync { | |
/// Interface that can handle requests to push job for workers | ||
pub trait PushWorkHandler: Send + Sync { | ||
/// push the same work package for all workers (`payload`: json of pow-specific set of work specification) | ||
fn push_work_all(&self, payload: String) -> Result<(), Error>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The trait looks a bit weird after this change because now I do realize it is because we don't want to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
It does, but it's better to get the weirdness "in your face" than hidden behind a comfy
Yeah, and while that would be more satisfying I still wonder what use calling code can make with such an error? Honest question: would it be useful? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I don't think so currently it is only called from here AFAIU and would require more changes then. Also, seems like We can merge this and investigate my points above separately |
||
|
||
/// push the work packages worker-wise (`payload`: json of pow-specific set of work specification) | ||
fn push_work(&self, payloads: Vec<String>) -> Result<(), Error>; | ||
fn push_work_all(&self, payload: String); | ||
} | ||
|
||
pub struct ServiceConfiguration { | ||
|
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.
👍