diff options
author | Antoine A <> | 2022-03-10 00:19:59 +0100 |
---|---|---|
committer | Antoine A <> | 2022-03-10 00:19:59 +0100 |
commit | 1b10436d222864210bd6ac952c0f107ba79c8905 (patch) | |
tree | 25aae54af348407d1e5260869d56ad6f05840ec3 /eth-wire | |
parent | 4d23117fdb61298399bb02de21db2abe684f57e5 (diff) | |
download | depolymerization-1b10436d222864210bd6ac952c0f107ba79c8905.tar.gz depolymerization-1b10436d222864210bd6ac952c0f107ba79c8905.tar.bz2 depolymerization-1b10436d222864210bd6ac952c0f107ba79c8905.zip |
Watcher throttle on error
Diffstat (limited to 'eth-wire')
-rw-r--r-- | eth-wire/src/loops/watcher.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eth-wire/src/loops/watcher.rs b/eth-wire/src/loops/watcher.rs index 45314a1..4e5d00b 100644 --- a/eth-wire/src/loops/watcher.rs +++ b/eth-wire/src/loops/watcher.rs @@ -1,3 +1,5 @@ +use std::time::Duration; + /* This file is part of TALER Copyright (C) 2022 Taler Systems SA @@ -33,6 +35,7 @@ pub fn watcher(mut rpc: AutoRpcCommon, mut db: AutoReconnectDb) { })(); if let Err(e) = result { error!("watcher: {}", e); + std::thread::sleep(Duration::from_secs(5)); } } } |