Skip to content

Commit f3cb61f

Browse files
committed
f Use plain references
1 parent a5dbe54 commit f3cb61f

File tree

1 file changed

+9
-9
lines changed
  • lightning-background-processor/src

1 file changed

+9
-9
lines changed

lightning-background-processor/src/lib.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ where A::Target: chain::Access, L::Target: Logger {
138138
}
139139

140140
impl<P: Deref<Target = P2PGossipSync<G, A, L>>, G: Deref<Target = NetworkGraph<L>>, A: Deref, L: Deref>
141-
GossipSync<P, Arc<RapidGossipSync<G, L>>, G, A, L>
141+
GossipSync<P, &RapidGossipSync<G, L>, G, A, L>
142142
where
143143
A::Target: chain::Access,
144144
L::Target: Logger,
@@ -149,12 +149,12 @@ where
149149
}
150150
}
151151

152-
impl<R: Deref<Target = RapidGossipSync<G, L>>, G: Deref<Target = NetworkGraph<L>>, L: Deref>
152+
impl<'a, R: Deref<Target = RapidGossipSync<G, L>>, G: Deref<Target = NetworkGraph<L>>, L: Deref>
153153
GossipSync<
154-
Arc<P2PGossipSync<G, Arc<dyn chain::Access + Send + Sync>, L>>,
154+
&P2PGossipSync<G, &'a(dyn chain::Access + Send + Sync), L>,
155155
R,
156156
G,
157-
Arc<dyn chain::Access + Send + Sync>,
157+
&'a(dyn chain::Access + Send + Sync),
158158
L,
159159
>
160160
where
@@ -166,12 +166,12 @@ where
166166
}
167167
}
168168

169-
impl<L: Deref>
169+
impl<'ng, 'a, L: Deref>
170170
GossipSync<
171-
Arc<P2PGossipSync<Arc<NetworkGraph<L>>, Arc<dyn chain::Access + Send + Sync>, L>>,
172-
Arc<RapidGossipSync<Arc<NetworkGraph<L>>, L>>,
173-
Arc<NetworkGraph<L>>,
174-
Arc<dyn chain::Access + Send + Sync>,
171+
&P2PGossipSync<&'ng NetworkGraph<L>, &'a(dyn chain::Access + Send + Sync), L>,
172+
&RapidGossipSync<&'ng NetworkGraph<L>, L>,
173+
&'ng NetworkGraph<L>,
174+
&'a(dyn chain::Access + Send + Sync),
175175
L,
176176
>
177177
where

0 commit comments

Comments
 (0)