From 8951fb2c4f0329544de579fe53d3cb3c8a46f38d Mon Sep 17 00:00:00 2001 From: Sergey F Date: Mon, 7 Jun 2021 11:20:16 +0300 Subject: [PATCH] clickhouse writer: Backoff max_elapsed_time = None see https://github.com/ihrwein/backoff/issues/39 --- main/src/clickhouse_utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/src/clickhouse_utils.rs b/main/src/clickhouse_utils.rs index ab2207c..6df42bf 100644 --- a/main/src/clickhouse_utils.rs +++ b/main/src/clickhouse_utils.rs @@ -63,7 +63,7 @@ impl Writer { ) -> Result<()> { let state = Arc::new(Mutex::new(WriterState { notify: Vec::new() })); let map = Arc::new(map); - retry(ExponentialBackoff::default(), || async { + retry(ExponentialBackoff { max_elapsed_time: None, ..ExponentialBackoff::default() }, || async { Writer::go( self.cfg.clone(), client.clone(),