We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 154b0a8 commit 8e59243Copy full SHA for 8e59243
src/wallet.rs
@@ -109,14 +109,18 @@ where
109
Err(e) => match e {
110
bdk::Error::Esplora(ref be) => match **be {
111
bdk::blockchain::esplora::EsploraError::Reqwest(_) => {
112
+ // Drop lock, sleep for a second, retry.
113
+ drop(wallet_lock);
114
tokio::time::sleep(Duration::from_secs(1)).await;
115
log_error!(
116
self.logger,
117
"Sync failed due to HTTP connection error, retrying: {}",
118
e
119
);
120
let sync_options = SyncOptions { progress: None };
- wallet_lock
121
+ self.inner
122
+ .lock()
123
+ .unwrap()
124
.sync(&self.blockchain, sync_options)
125
.await
126
.map_err(|e| From::from(e))
0 commit comments