Skip to content

Commit 9342842

Browse files
committed
topology: unpub internals of nonpub MetadataReader
`MetadataReader` is `pub(crate)`, so no its methods should be `pub`.
1 parent d641697 commit 9342842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scylla/src/transport/topology.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ impl Metadata {
380380
impl MetadataReader {
381381
/// Creates new MetadataReader, which connects to initially_known_peers in the background
382382
#[allow(clippy::too_many_arguments)]
383-
pub fn new(
383+
pub(crate) fn new(
384384
initially_known_peers: Vec<ContactPoint>,
385385
mut connection_config: ConnectionConfig,
386386
keepalive_interval: Option<Duration>,
@@ -423,7 +423,7 @@ impl MetadataReader {
423423
}
424424

425425
/// Fetches current metadata from the cluster
426-
pub async fn read_metadata(&mut self, initial: bool) -> Result<Metadata, QueryError> {
426+
pub(crate) async fn read_metadata(&mut self, initial: bool) -> Result<Metadata, QueryError> {
427427
let mut result = self.fetch_metadata(initial).await;
428428
if let Ok(metadata) = result {
429429
self.update_known_peers(&metadata);

0 commit comments

Comments
 (0)