From: Allan Douglas R. de Oliveira Date: Fri, 24 Feb 2023 02:56:11 +0000 (+0000) Subject: Only import lightning::io if futures are enabled X-Git-Tag: v0.0.114-beta~7^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=19ef2bb6ac6b1d247a07fceda1c845d8f723a31e;p=rust-lightning Only import lightning::io if futures are enabled --- diff --git a/lightning-background-processor/src/lib.rs b/lightning-background-processor/src/lib.rs index 97d0462eb..c471555d7 100644 --- a/lightning-background-processor/src/lib.rs +++ b/lightning-background-processor/src/lib.rs @@ -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, peer_manager: PM, logger: L, scorer: Option, sleeper: Sleeper, -) -> Result<(), io::Error> +) -> Result<(), lightning::io::Error> where UL::Target: 'static + UtxoLookup, CF::Target: 'static + chain::Filter,