Skip to content

Commit 51c92e2

Browse files
committed
Bump VSS retrying params
1 parent 05d270a commit 51c92e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/io/vss_store.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type CustomRetryPolicy = FilteredRetryPolicy<
4646
// We set this to a small number of threads that would still allow to make some progress if one
4747
// would hit a blocking case
4848
const INTERNAL_RUNTIME_WORKERS: usize = 2;
49-
const VSS_IO_TIMEOUT: Duration = Duration::from_secs(5);
49+
const VSS_IO_TIMEOUT: Duration = Duration::from_secs(20);
5050

5151
/// A [`KVStoreSync`] implementation that writes to and reads from a [VSS](https://github.com/lightningdevkit/vss-server/blob/main/README.md) backend.
5252
pub struct VssStore {
@@ -335,9 +335,7 @@ impl VssStoreInner {
335335
let key_obfuscator = KeyObfuscator::new(obfuscation_master_key);
336336
let storable_builder = StorableBuilder::new(data_encryption_key, RandEntropySource);
337337
let retry_policy = ExponentialBackoffRetryPolicy::new(Duration::from_millis(10))
338-
.with_max_attempts(10)
339-
.with_max_total_delay(Duration::from_secs(15))
340-
.with_max_jitter(Duration::from_millis(10))
338+
.with_max_total_delay(VSS_IO_TIMEOUT)
341339
.skip_retry_on_error(Box::new(|e: &VssError| {
342340
matches!(
343341
e,

0 commit comments

Comments
 (0)