Skip to content

Commit 8d8955d

Browse files
committed
f Use async sync
1 parent 6a1ee77 commit 8d8955d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ impl LdkLite {
495495
// fifth round.
496496
if rounds == 0 {
497497
let now = Instant::now();
498-
match chain_access.sync_wallet() {
498+
match chain_access.sync_wallet().await {
499499
Ok(()) => log_info!(
500500
sync_logger,
501501
"On-chain wallet sync finished in {}ms.",
@@ -511,7 +511,7 @@ impl LdkLite {
511511
&*sync_cmon as &(dyn Confirm + Sync),
512512
];
513513
let now = Instant::now();
514-
match chain_access.sync(confirmables) {
514+
match chain_access.sync(confirmables).await {
515515
Ok(()) => log_info!(
516516
sync_logger,
517517
"Lightning wallet sync finished in {}ms.",

0 commit comments

Comments
 (0)