Skip to content

Commit

Permalink
errors: remove TooManyOrphanedStreamIds variant from [Query/NewSessio…
Browse files Browse the repository at this point in the history
…n]Error

This is now included in `BrokenConnectionErrorKind`. Corresponding variant
in [Query/NewSession]Error is never constructed.
  • Loading branch information
muzarski committed Sep 18, 2024
1 parent 09735bc commit acc5461
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions scylla/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ pub enum QueryError {
#[error("Timeout Error")]
TimeoutError,

#[error("Too many orphaned stream ids: {0}")]
TooManyOrphanedStreamIds(u16),

#[error(transparent)]
BrokenConnection(#[from] BrokenConnectionError),

Expand Down Expand Up @@ -159,9 +156,6 @@ impl From<QueryError> 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),
Expand Down Expand Up @@ -229,9 +223,6 @@ pub enum NewSessionError {
#[error("Timeout Error")]
TimeoutError,

#[error("Too many orphaned stream ids: {0}")]
TooManyOrphanedStreamIds(u16),

#[error(transparent)]
BrokenConnection(#[from] BrokenConnectionError),

Expand Down
1 change: 0 additions & 1 deletion scylla/src/transport/load_balancing/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 { .. }, _)
Expand Down

0 comments on commit acc5461

Please sign in to comment.