Skip to content

Commit

Permalink
fix: Setup Redis retry policy (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega authored Aug 7, 2022
1 parent ce240a5 commit 10bbf7e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/storage/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ impl Bootstrapper {
worker,
gasket::runtime::Policy {
tick_timeout: Some(Duration::from_secs(600)),
bootstrap_retry: gasket::retries::Policy {
max_retries: 20,
backoff_unit: Duration::from_secs(1),
backoff_factor: 2,
max_backoff: Duration::from_secs(60),
},
..Default::default()
},
Some("redis"),
Expand Down

0 comments on commit 10bbf7e

Please sign in to comment.