Skip to content

Commit c7f7fd4

Browse files
authored
Update build_a_node_in_rust.md
Noticed these were out of date
1 parent 3f68da5 commit c7f7fd4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/tutorials/build_a_node_in_rust.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -721,16 +721,15 @@ let router = DefaultRouter::new(Arc::clone(&network_graph), &logger, keys_manage
721721
let invoice_payer = InvoicePayer::new(
722722
Arc::clone(&channel_manager),
723723
router,
724-
Arc::clone(&scorer),
725724
Arc::clone(&logger),
726725
event_handler,
727-
payment::RetryAttempts(5),
726+
payment::Retry::Attempts(5),
728727
);
729728
```
730729

731730
**Implementation notes:** The scorer is used when finding a route and when handling events from successful and failed paths. The retrier consumes those events by telling the scorer that a path has failed or succeeded and then retries by querying for a (potentially new) path with the updated scorer.
732731

733-
**Dependencies** `ChannelManager`, `DefaultRouter`, `ProbablisticScorer`, `Logger`, `Event`, `RetryAttempts`
732+
**Dependencies** `ChannelManager`, `DefaultRouter`, `Logger`, `Event`, `RetryAttempts`
734733

735734
**Reference** [`InvoicePayer` docs](https://docs.rs/lightning-invoice/*/lightning_invoice/payment/struct.InvoicePayer.html), [LDK sample node InvoicePayer example](https://github.com/lightningdevkit/ldk-sample/blob/6f6473bf1bb4a1b2149a9a5c3616c39653dec144/src/main.rs#L615-L622)
736735

0 commit comments

Comments
 (0)