Skip to content

Commit 546f211

Browse files
committed
add max_retries
1 parent 2e6fd09 commit 546f211

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/api/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ pub enum Error {
6565
#[error("Wrong server address: {0}")]
6666
WrongServerAddress(String),
6767

68-
6968
#[error("Exceeded maximum retry attempts: {0}")]
7069
MaxRetriesExceeded(i32),
7170
}

src/api/props.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ impl ClientProps {
135135
pub(crate) fn get_max_retries(&self) -> Option<i32> {
136136
self.max_retries
137137
}
138-
139138
}
140139

141140
#[allow(clippy::new_without_default)]

src/common/remote/grpc/nacos_grpc_connection.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@ where
483483
debug_span!(parent: None, "grpc_connection", id = self.id.clone()).entered();
484484

485485
loop {
486-
487486
if let Some(max_retries) = self.max_retries {
488487
if self.retry_count >= max_retries {
489488
error!("Exceeded maximum retry attempts: {}", max_retries);

0 commit comments

Comments
 (0)