Skip to content

Commit

Permalink
Merge pull request #1170 from muzarski/topology-errors-refactor
Browse files Browse the repository at this point in the history
errors: metadata errors refactor
  • Loading branch information
wprzytula authored Jan 29, 2025
2 parents 2d810f7 + 1d10e56 commit 9730847
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 164 deletions.
6 changes: 3 additions & 3 deletions scylla/src/client/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use crate::cluster::node::CloudEndpoint;
use crate::cluster::node::{InternalKnownNode, KnownNode, NodeRef};
use crate::cluster::{Cluster, ClusterNeatDebug, ClusterState};
use crate::errors::{
BadQuery, NewSessionError, ProtocolError, QueryError, RequestAttemptError, RequestError,
TracingProtocolError,
BadQuery, MetadataError, NewSessionError, ProtocolError, QueryError, RequestAttemptError,
RequestError, TracingProtocolError,
};
use crate::frame::response::result;
#[cfg(feature = "ssl")]
Expand Down Expand Up @@ -1717,7 +1717,7 @@ where
///
/// Normally this is not needed,
/// the driver should automatically detect all metadata changes in the cluster
pub async fn refresh_metadata(&self) -> Result<(), QueryError> {
pub async fn refresh_metadata(&self) -> Result<(), MetadataError> {
self.cluster.refresh_metadata().await
}

Expand Down
Loading

0 comments on commit 9730847

Please sign in to comment.