Remove with_gossip#2500
Conversation
|
Also needs a PR in Polkadot when this is merged. |
|
What's the rationale for removing the generic |
|
Just like the other PRs, I'm trying to make the API less dependant on the threading strategy. To me, passing a closure to |
|
I fail to see how the last commit changes the situation with regards to the dependence on the threading strategy. We're trading a single The only difference is that every operation we come up with later will require a new method, and message, whereas If what you mean is that you want the "operation" corresponding to the method call to execute immediately, we could still keep |
|
Yeah, I still think |
|
Well, ok. I don't want to spend energy convincing people, so will reopen at a later time on top of other changes when the necessity of that change becomes a bit more obvious. |
Based on top of #2497. Only the last commit is relevant.
Removes the
Service::with_gossipmethod and turn its usage around the code into individual method calls.