mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-23 20:26:19 +00:00
Remove sync::Context trait. (#3105)
Instead of passing a context around to each method, thereby introducing side-effecting I/O actions everywhere, with this PR `sync::ChainSync` only contains state which is updated by invoking various callback methods (`on_*`) and actionable items are returned as regular results from method calls, often iterators yielding requests that should be issued to peers. It is up to the caller to handle these in an appropriate way, currently `protocol` will send those as messages.
This commit is contained in:
1 parent
e4d4548121
commit
9ee79d5c5e
4 files changed
+902
-914
No files matched your search
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user