diff --git a/scylla/src/errors.rs b/scylla/src/errors.rs index 6ef13fe00..b4c7334c4 100644 --- a/scylla/src/errors.rs +++ b/scylla/src/errors.rs @@ -72,9 +72,6 @@ pub enum QueryError { #[error("Timeout Error")] TimeoutError, - #[error("Too many orphaned stream ids: {0}")] - TooManyOrphanedStreamIds(u16), - #[error(transparent)] BrokenConnection(#[from] BrokenConnectionError), @@ -160,9 +157,6 @@ impl From for NewSessionError { QueryError::ProtocolError(m) => NewSessionError::ProtocolError(m), QueryError::InvalidMessage(m) => NewSessionError::InvalidMessage(m), QueryError::TimeoutError => NewSessionError::TimeoutError, - QueryError::TooManyOrphanedStreamIds(ids) => { - NewSessionError::TooManyOrphanedStreamIds(ids) - } QueryError::BrokenConnection(e) => NewSessionError::BrokenConnection(e), QueryError::UnableToAllocStreamId => NewSessionError::UnableToAllocStreamId, QueryError::RequestTimeout(msg) => NewSessionError::RequestTimeout(msg), @@ -231,9 +225,6 @@ pub enum NewSessionError { #[error("Timeout Error")] TimeoutError, - #[error("Too many orphaned stream ids: {0}")] - TooManyOrphanedStreamIds(u16), - #[error(transparent)] BrokenConnection(#[from] BrokenConnectionError), diff --git a/scylla/src/transport/load_balancing/default.rs b/scylla/src/transport/load_balancing/default.rs index e9ce93e19..95ff6eaca 100644 --- a/scylla/src/transport/load_balancing/default.rs +++ b/scylla/src/transport/load_balancing/default.rs @@ -2843,7 +2843,6 @@ mod latency_awareness { QueryError::BadQuery(_) | QueryError::BrokenConnection(_) | QueryError::ConnectionPoolError(_) - | QueryError::TooManyOrphanedStreamIds(_) | QueryError::UnableToAllocStreamId | QueryError::DbError(DbError::IsBootstrapping, _) | QueryError::DbError(DbError::Unavailable { .. }, _)