This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Use async/await instead of manual polling of NetworkWorker
#13219
Merged
paritytech-processbot
merged 43 commits into
master
from
dm-network-service-async-await
Feb 20, 2023
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
fb272a6
Convert `NetworkWorker::poll()` into async `next_action()`
dmitry-markin 4b5d851
Use `NetworkWorker::next_action` instead of `poll` in `sc-network-test`
dmitry-markin 1c87141
Revert "Use `NetworkWorker::next_action` instead of `poll` in `sc-net…
dmitry-markin dbd8ad9
Fix `sc-network-test` to poll `NetworkWorker::next_action`
dmitry-markin e8d0758
Fix `sc_network::service` tests to poll `NetworkWorker::next_action`
dmitry-markin 3071b05
Fix docs
dmitry-markin 431e550
Merge remote-tracking branch 'origin/master' into dm-network-service-…
dmitry-markin d7be660
kick CI
dmitry-markin 78cce1a
Factor out `next_worker_message()` & `next_swarm_event()`
dmitry-markin c9f75f7
Error handling: replace `futures::pending!()` with `expect()`
dmitry-markin 4a85d1f
Simplify stream polling in `select!`
dmitry-markin c165185
Replace `NetworkWorker::next_action()` with `run()`
dmitry-markin d827ae9
Merge remote-tracking branch 'origin/master' into dm-network-service-…
dmitry-markin 019ec35
Apply suggestions from code review
dmitry-markin d38b2b7
minor: comment
dmitry-markin 343e9e9
Merge remote-tracking branch 'origin/master' into dm-network-service-…
dmitry-markin dd4980d
Apply suggestions from code review
dmitry-markin 403dded
Print debug log when network future is shut down
dmitry-markin 5a7ec32
Merge remote-tracking branch 'origin/master' into dm-network-service-…
dmitry-markin 73dfd4b
Merge remote-tracking branch 'origin/master' into dm-network-service-…
dmitry-markin 5a63842
Evaluate `NetworkWorker::run()` future once before the loop
dmitry-markin 913e21c
Merge remote-tracking branch 'origin/master' into dm-network-service-…
dmitry-markin 8e1db2c
Fix client code to match new `NetworkService` interfaces
dmitry-markin faec2e9
Make clippy happy
dmitry-markin 9fa646d
Apply suggestions from code review
dmitry-markin 9c5b610
Apply suggestions from code review
dmitry-markin f324937
Revert "Apply suggestions from code review"
dmitry-markin 9856cc4
Make `NetworkWorker::run()` consume `self`
dmitry-markin f86ec12
Terminate system RPC future if RPC rx stream has terminated.
dmitry-markin 9557a42
Rewrite with let-else
dmitry-markin 533cc04
Fix comments
dmitry-markin e669c6a
Get `best_seen_block` and call `on_block_finalized` via `ChainSync` i…
dmitry-markin 6ed5d48
rustfmt
dmitry-markin ab1ced4
make clippy happy
dmitry-markin 4be62c7
Tests: schedule wake if `next_action()` returned true
dmitry-markin 5e90af0
minor: comment
dmitry-markin a9123a7
Merge remote-tracking branch 'origin/master' into dm-network-service-…
dmitry-markin 113a888
minor: fix `NetworkWorker` rustdoc
dmitry-markin ac1452c
minor: amend the rustdoc
dmitry-markin 5fc3831
Fix bug that caused `on_demand_beefy_justification_sync` test to hang
dmitry-markin 6005109
Merge remote-tracking branch 'origin/master' into dm-network-service-…
dmitry-markin 9df7d0e
rustfmt
dmitry-markin 812c316
Apply review suggestions
dmitry-markin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Make
NetworkWorker::run() consume self
- Loading branch information
commit 9856cc479839c529c633a2fa0ddc4a89d91f60bd
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.