Skip to content

Commit c0fc36d

Browse files
committed
f move poller
1 parent e5602bb commit c0fc36d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lightning/src/util/persist.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ use crate::sign::{ecdsa::EcdsaChannelSigner, EntropySource, SignerProvider};
3636
use crate::sync::Mutex;
3737
use crate::util::async_poll::{dummy_waker, MaybeSend, MaybeSync};
3838
use crate::util::logger::Logger;
39+
use crate::util::native_async::FutureSpawner;
3940
use crate::util::ser::{Readable, ReadableArgs, Writeable};
4041

4142
/// The alphabet of characters allowed for namespaces and keys.
@@ -411,14 +412,6 @@ where
411412
Ok(res)
412413
}
413414

414-
/// A generic trait which is able to spawn futures in the background.
415-
pub trait FutureSpawner: Send + Sync + 'static {
416-
/// Spawns the given future as a background task.
417-
///
418-
/// This method MUST NOT block on the given future immediately.
419-
fn spawn<T: Future<Output = ()> + MaybeSend + 'static>(&self, future: T);
420-
}
421-
422415
struct PanicingSpawner;
423416
impl FutureSpawner for PanicingSpawner {
424417
fn spawn<T: Future<Output = ()> + MaybeSend + 'static>(&self, _: T) {

0 commit comments

Comments
 (0)