Skip to content

Commit d28ee40

Browse files
committed
f! take events by value
1 parent f455f2c commit d28ee40

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

lightning-background-processor/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,10 @@ impl<
259259
L: Deref,
260260
> AsyncEventHandler for DecoratingAsyncEventHandler<'a, E, PGS, RGS, G, A, L>
261261
where A::Target: chain::Access, L::Target: Logger {
262-
fn handle_event_async<'b>(&'b self, event: &'b Event) -> Pin<Box<dyn StdFuture<Output = ()> + '_>> {
262+
fn handle_event_async<'b>(&'b self, event: Event) -> Pin<Box<dyn StdFuture<Output = ()> + '_>> {
263263
Box::pin(async move {
264264
if let Some(network_graph) = self.gossip_sync.network_graph() {
265-
network_graph.handle_event(event); // TODO: Also make async?
265+
network_graph.handle_event(event.clone()); // TODO: Also make async?
266266
}
267267
self.async_event_handler.handle_event_async(event).await;
268268
})

0 commit comments

Comments
 (0)