Use a 10-second timeout for InvoicePayer
[ldk-sample] / 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