We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4c72ed commit 2477ab4Copy full SHA for 2477ab4
src/client.rs
@@ -63,7 +63,7 @@ macro_rules! impl_inner_call {
63
// previous loop when trying to read()
64
if let Ok(mut write_client) = $self.client_type.try_write() {
65
loop {
66
- std::thread::sleep(std::time::Duration::from_secs(errors.len() as u64));
+ std::thread::sleep(std::time::Duration::from_secs((1 << errors.len()).min(30) as u64));
67
match ClientType::from_config(&$self.url, &$self.config) {
68
Ok(new_client) => {
69
info!("Succesfully created new client");
0 commit comments