fix: breaking loop when not retryable (#6538)

fix: breaking when not retryable

Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2025-07-16 17:22:41 +08:00
committed by GitHub
parent e6b9d09901
commit 139a36a459

View File

@@ -250,12 +250,18 @@ impl Database {
retries += 1;
warn!("Retrying {} times with error = {:?}", retries, err);
continue;
} else {
error!(
err; "Failed to send request to grpc handle, retries = {}, not retryable error, aborting",
retries
);
return Err(err.into());
}
}
(Err(err), false) => {
error!(
"Failed to send request to grpc handle after {} retries, error = {:?}",
retries, err
err; "Failed to send request to grpc handle after {} retries",
retries,
);
return Err(err.into());
}