aboutsummaryrefslogtreecommitdiff
path: root/src/consul_actor.rs
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-23 16:29:02 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-23 16:29:02 +0200
commit5dd4544360906de246de9e33abbfd741681d2fea (patch)
treebdb1c52d7085023a827b80f99619a747d2125b95 /src/consul_actor.rs
parent3e2ea02d62e0d8fd77e46e6dc5e0318584fb16dc (diff)
downloaddiplonat-5dd4544360906de246de9e33abbfd741681d2fea.tar.gz
diplonat-5dd4544360906de246de9e33abbfd741681d2fea.zip
Dockerize app
Diffstat (limited to 'src/consul_actor.rs')
-rw-r--r--src/consul_actor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consul_actor.rs b/src/consul_actor.rs
index 877ea10..1cbb1b8 100644
--- a/src/consul_actor.rs
+++ b/src/consul_actor.rs
@@ -92,7 +92,7 @@ impl ConsulActor {
Ok(c) => c,
Err(e) => {
self.consul.watch_node_reset();
- self.retries = cmp::min(u32::MAX - 1, self.retries) + 1;
+ self.retries = cmp::min(std::u32::MAX - 1, self.retries) + 1;
let will_retry_in = retry_to_time(self.retries, Duration::from_secs(600));
error!("Failed to query consul. Will retry in {}s. {}", will_retry_in.as_secs(), e);
delay_for(will_retry_in).await;