Skip to content

Commit d9c3a34

Browse files
committed
f upstream spawner
1 parent 8c76305 commit d9c3a34

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

src/main.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ use lightning::types::payment::{PaymentHash, PaymentPreimage, PaymentSecret};
4040
use lightning::util::config::UserConfig;
4141
use lightning::util::hash_tables::hash_map::Entry;
4242
use lightning::util::hash_tables::HashMap;
43-
use lightning::util::native_async::FutureSpawner;
4443
use lightning::util::persist::{
4544
self, KVStore, MonitorUpdatingPersisterAsync, OUTPUT_SWEEPER_PERSISTENCE_KEY,
4645
OUTPUT_SWEEPER_PERSISTENCE_PRIMARY_NAMESPACE, OUTPUT_SWEEPER_PERSISTENCE_SECONDARY_NAMESPACE,
@@ -60,7 +59,6 @@ use std::convert::TryInto;
6059
use std::fmt;
6160
use std::fs;
6261
use std::fs::File;
63-
use std::future::Future;
6462
use std::io::{BufReader, Write};
6563
use std::net::ToSocketAddrs;
6664
use std::path::Path;
@@ -211,14 +209,6 @@ pub(crate) type OutputSweeper = ldk_sweep::OutputSweeper<
211209
// Needed due to rust-lang/rust#63033.
212210
struct OutputSweeperWrapper(Arc<OutputSweeper>);
213211

214-
// Trivially bridge the LDK FutureSpawner trait to tokio
215-
struct TokioSpawner;
216-
impl FutureSpawner for TokioSpawner{
217-
fn spawn<T: Future<Output = ()> + Send + 'static>(&self, future: T) {
218-
tokio::spawn(future);
219-
}
220-
}
221-
222212
fn handle_ldk_events<'a>(
223213
channel_manager: Arc<ChannelManager>, bitcoind_client: &'a BitcoindClient,
224214
network_graph: &'a NetworkGraph, keys_manager: &'a KeysManager,

0 commit comments

Comments
 (0)