mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 08:51:09 +00:00
Move pool maintainance to a background task. (#1236)
* Move pool maintainance to a background task. * Remove commented code. * Add issue number to TODOs * Fix warnings and tests.
This commit is contained in:
committed by
Bastian Köcher
parent
742cb33d90
commit
507c13e31c
@@ -189,6 +189,7 @@ impl<V: 'static + Verifier<Block>, D> Peer<V, D> {
|
||||
io.to_disconnect.clone()
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
fn with_io<'a, F, U>(&'a self, f: F) -> U where F: FnOnce(&mut TestIo<'a>) -> U {
|
||||
let mut io = TestIo::new(&self.queue, None);
|
||||
f(&mut io)
|
||||
|
||||
Reference in New Issue
Block a user