Skip to content

Commit

Permalink
f Use plain references
Browse files Browse the repository at this point in the history
  • Loading branch information
wpaulino committed Jul 14, 2022
1 parent a5dbe54 commit f3cb61f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lightning-background-processor/src/lib.rs
Expand Up @@ -138,7 +138,7 @@ where A::Target: chain::Access, L::Target: Logger {
}

impl<P: Deref<Target = P2PGossipSync<G, A, L>>, G: Deref<Target = NetworkGraph<L>>, A: Deref, L: Deref>
GossipSync<P, Arc<RapidGossipSync<G, L>>, G, A, L>
GossipSync<P, &RapidGossipSync<G, L>, G, A, L>
where
A::Target: chain::Access,
L::Target: Logger,
Expand All @@ -149,12 +149,12 @@ where
}
}

impl<R: Deref<Target = RapidGossipSync<G, L>>, G: Deref<Target = NetworkGraph<L>>, L: Deref>
impl<'a, R: Deref<Target = RapidGossipSync<G, L>>, G: Deref<Target = NetworkGraph<L>>, L: Deref>
GossipSync<
Arc<P2PGossipSync<G, Arc<dyn chain::Access + Send + Sync>, L>>,
&P2PGossipSync<G, &'a(dyn chain::Access + Send + Sync), L>,
R,
G,
Arc<dyn chain::Access + Send + Sync>,
&'a(dyn chain::Access + Send + Sync),
L,
>
where
Expand All @@ -166,12 +166,12 @@ where
}
}

impl<L: Deref>
impl<'ng, 'a, L: Deref>
GossipSync<
Arc<P2PGossipSync<Arc<NetworkGraph<L>>, Arc<dyn chain::Access + Send + Sync>, L>>,
Arc<RapidGossipSync<Arc<NetworkGraph<L>>, L>>,
Arc<NetworkGraph<L>>,
Arc<dyn chain::Access + Send + Sync>,
&P2PGossipSync<&'ng NetworkGraph<L>, &'a(dyn chain::Access + Send + Sync), L>,
&RapidGossipSync<&'ng NetworkGraph<L>, L>,
&'ng NetworkGraph<L>,
&'a(dyn chain::Access + Send + Sync),
L,
>
where
Expand Down

0 comments on commit f3cb61f

Please sign in to comment.