Skip to content

Commit d5636e2

Browse files
committed
f - update parameters of find_path call
1 parent 85ba6fd commit d5636e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/onion_message/messenger.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,8 @@ where
360360
}
361361
};
362362

363+
let peers = self.pending_messages.lock().unwrap().keys().copied().collect();
364+
363365
let destination = match reply_path {
364366
Some(reply_path) => Destination::BlindedPath(reply_path),
365367
None => {
@@ -371,7 +373,7 @@ where
371373
},
372374
};
373375

374-
let path = match self.message_router.find_path(&sender, destination) {
376+
let path = match self.message_router.find_path(sender, peers, destination) {
375377
Ok(path) => path,
376378
Err(()) => {
377379
log_info!(

0 commit comments

Comments
 (0)