Skip to content

Commit

Permalink
Make fields of ConnectionSetupRequestError.
Browse files Browse the repository at this point in the history
This allows user to match on the error and handle the error accordingly.
  • Loading branch information
rukai committed Nov 25, 2024
1 parent 64647f9 commit a72651a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scylla/src/transport/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,8 +696,8 @@ pub enum TranslationError {
#[derive(Error, Debug, Clone)]
#[error("Failed to perform a connection setup request. Request: {request_kind}, reason: {error}")]
pub struct ConnectionSetupRequestError {
request_kind: CqlRequestKind,
error: ConnectionSetupRequestErrorKind,
pub request_kind: CqlRequestKind,
pub error: ConnectionSetupRequestErrorKind,
}

#[derive(Error, Debug, Clone)]
Expand Down

0 comments on commit a72651a

Please sign in to comment.