]> git.bitcoin.ninja Git - ldk-sample/commitdiff
Use a 10-second timeout for InvoicePayer
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 9 Jun 2022 16:14:53 +0000 (11:14 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 9 Jun 2022 22:02:38 +0000 (17:02 -0500)
src/main.rs

index 3bdabc172063b954cb8dddb8d9a49cd837c4b393..202b551f140ad177c67f49f4d95262e3999d4514 100644 (file)
@@ -677,7 +677,7 @@ async fn start_ldk() {
                scorer.clone(),
                logger.clone(),
                event_handler,
-               payment::Retry::Attempts(5),
+               payment::Retry::Timeout(Duration::from_secs(10)),
        ));
 
        // Step 18: Persist ChannelManager and NetworkGraph