Skip to content

Commit 44cae1f

Browse files
committed
sharding: make ShardingError pub(crate)
This error type is used only internally. The `ShardInfo` struct is pub(crate) as well.
1 parent 1362b2c commit 44cae1f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scylla/src/routing/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ pub mod locator;
1313
pub mod partitioner;
1414
mod sharding;
1515

16-
pub(crate) use sharding::ShardInfo;
17-
pub use sharding::{Shard, ShardCount, Sharder, ShardingError};
16+
pub use sharding::{Shard, ShardCount, Sharder};
17+
pub(crate) use sharding::{ShardInfo, ShardingError};
1818

1919
#[derive(PartialEq, Eq, PartialOrd, Ord, Clone, Copy, Debug)]
2020

scylla/src/routing/sharding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl Sharder {
9696
}
9797

9898
#[derive(Clone, Error, Debug)]
99-
pub enum ShardingError {
99+
pub(crate) enum ShardingError {
100100
/// This indicates that we are most likely connected to a Cassandra cluster.
101101
/// Unless, there is some serious bug in Scylla.
102102
#[error("Server did not provide any sharding information")]

0 commit comments

Comments
 (0)