Skip to content

Commit 0697266

Browse files
committed
Retry more aggressively in VssStore.
Since a failed persistence might cause LDK to panic.
1 parent 6d8382b commit 0697266

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/io/vss_store.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ impl VssStore {
4848
pub(crate) fn new(base_url: String, store_id: String, data_encryption_key: [u8; 32]) -> Self {
4949
let runtime = tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap();
5050
let storable_builder = StorableBuilder::new(data_encryption_key, RandEntropySource);
51-
let retry_policy = ExponentialBackoffRetryPolicy::new(Duration::from_millis(100))
52-
.with_max_attempts(3)
53-
.with_max_total_delay(Duration::from_secs(2))
51+
let retry_policy = ExponentialBackoffRetryPolicy::new(Duration::from_millis(50))
52+
.with_max_attempts(6)
53+
.with_max_total_delay(Duration::from_secs(7))
5454
.with_max_jitter(Duration::from_millis(50))
5555
.skip_retry_on_error(Box::new(|e: &VssError| {
5656
matches!(

0 commit comments

Comments
 (0)