From b902cc7c49f7495c56c057e8e02f8faa2091c540 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Fri, 15 Apr 2022 11:34:51 -0500 Subject: [PATCH] Remove unnecessary lifetime bound --- lightning-block-sync/src/init.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning-block-sync/src/init.rs b/lightning-block-sync/src/init.rs index 5ba6ba39a..f5d839d21 100644 --- a/lightning-block-sync/src/init.rs +++ b/lightning-block-sync/src/init.rs @@ -123,11 +123,11 @@ BlockSourceResult where B::Target: BlockSource { /// [`SpvClient`]: crate::SpvClient /// [`ChannelManager`]: lightning::ln::channelmanager::ChannelManager /// [`ChannelMonitor`]: lightning::chain::channelmonitor::ChannelMonitor -pub async fn synchronize_listeners<'a, B: Deref + Sized + Send + Sync, C: Cache, L: chain::Listen + ?Sized>( +pub async fn synchronize_listeners( block_source: B, network: Network, header_cache: &mut C, - mut chain_listeners: Vec<(BlockHash, &'a L)>, + mut chain_listeners: Vec<(BlockHash, &L)>, ) -> BlockSourceResult where B::Target: BlockSource { let best_header = validate_best_block_header(&*block_source).await?; -- 2.39.5