Trivial networking changes for Substrate PR #11940 (#5841)

* Trivial networking changes for Substrate PR https://github.com/paritytech/substrate/pull/11940

* update lockfile for {"substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Nazar Mokrynskyi
2022-08-09 22:37:31 +03:00
committed by GitHub
parent 8a947d4c5d
commit f1dce2f548
10 changed files with 199 additions and 186 deletions
@@ -80,7 +80,7 @@ impl TestSyncOracleHandle {
}
impl SyncOracle for TestSyncOracle {
fn is_major_syncing(&mut self) -> bool {
fn is_major_syncing(&self) -> bool {
let is_major_syncing = self.flag.load(Ordering::SeqCst);
if !is_major_syncing {
@@ -92,7 +92,7 @@ impl SyncOracle for TestSyncOracle {
is_major_syncing
}
fn is_offline(&mut self) -> bool {
fn is_offline(&self) -> bool {
unimplemented!("not used in network bridge")
}
}