Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tpu-client-next/src/connection_worker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ impl ConnectionWorker {
ConnectionError::VersionMismatch | ConnectionError::LocallyClosed => {
ConnectionState::Closing
}
_ => ConnectionState::Retry(0),
_ => ConnectionState::Retry(1),
};
}

Expand Down Expand Up @@ -280,7 +280,7 @@ impl ConnectionWorker {
// Check connection health before each send
if connection.close_reason().is_some() {
debug!("Connection closed during transaction batch sending");
self.connection = ConnectionState::Retry(0);
self.connection = ConnectionState::Retry(1);
break;
}

Expand All @@ -292,7 +292,7 @@ impl ConnectionWorker {
self.peer
);
record_error(error, &self.send_txs_stats);
self.connection = ConnectionState::Retry(0);
self.connection = ConnectionState::Retry(1);
// Exit early since connection is likely broken
break;
} else {
Expand Down
Loading