]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Only import lightning::io if futures are enabled
authorAllan Douglas R. de Oliveira <allandouglas@gmail.com>
Fri, 24 Feb 2023 02:56:11 +0000 (02:56 +0000)
committerAllan Douglas R. de Oliveira <allandouglas@gmail.com>
Fri, 24 Feb 2023 02:56:11 +0000 (02:56 +0000)
lightning-background-processor/src/lib.rs

index 97d0462eb5010980850c64b53dc37a07c512f476..c471555d782113b659ec8a41b3cd273456e47632 100644 (file)
@@ -37,7 +37,6 @@ use lightning::util::events::{Event, EventHandler, EventsProvider};
 use lightning::util::logger::Logger;
 use lightning::util::persist::Persister;
 use lightning_rapid_gossip_sync::RapidGossipSync;
-use lightning::io;
 
 use core::ops::Deref;
 use core::time::Duration;
@@ -431,7 +430,7 @@ pub async fn process_events_async<
        persister: PS, event_handler: EventHandler, chain_monitor: M, channel_manager: CM,
        gossip_sync: GossipSync<PGS, RGS, G, UL, L>, peer_manager: PM, logger: L, scorer: Option<S>,
        sleeper: Sleeper,
-) -> Result<(), io::Error>
+) -> Result<(), lightning::io::Error>
 where
        UL::Target: 'static + UtxoLookup,
        CF::Target: 'static + chain::Filter,