client/network: Make NetworkService::set_priority_group async (#7352)
As done with `NetworkService::{add_to,remove_from}_priority_group`, make `NetworkService::set_priority_group` async as well. This future-proofs the API should we ever decide to use a bounded channel between `NetworkService` and `NetworkWorker`.
Showing
- substrate/Cargo.lock 1 addition, 0 deletionssubstrate/Cargo.lock
- substrate/client/authority-discovery/Cargo.toml 1 addition, 0 deletionssubstrate/client/authority-discovery/Cargo.toml
- substrate/client/authority-discovery/src/worker.rs 9 additions, 6 deletionssubstrate/client/authority-discovery/src/worker.rs
- substrate/client/authority-discovery/src/worker/tests.rs 5 additions, 3 deletionssubstrate/client/authority-discovery/src/worker/tests.rs
- substrate/client/network/src/service.rs 4 additions, 1 deletionsubstrate/client/network/src/service.rs
Please register or sign in to comment