Skip to content

Commit f170744

Browse files
committed
metadata: un-pub PeerEndpoint
It's not used anywhere in the public API. Peer struct needs to stay pub, because it's used in `HostFilter` trait.
1 parent 6ca9a7c commit f170744

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scylla/src/cluster/metadata.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,12 @@ impl UntranslatedEndpoint {
152152
/// Data used to issue connections to a node.
153153
///
154154
/// Fetched from the cluster in Metadata.
155-
#[non_exhaustive] // <- so that we can add more fields in a backwards-compatible way
156155
#[derive(Clone, Debug)]
157-
pub struct PeerEndpoint {
158-
pub host_id: Uuid,
159-
pub address: NodeAddr,
160-
pub datacenter: Option<String>,
161-
pub rack: Option<String>,
156+
pub(crate) struct PeerEndpoint {
157+
pub(crate) host_id: Uuid,
158+
pub(crate) address: NodeAddr,
159+
pub(crate) datacenter: Option<String>,
160+
pub(crate) rack: Option<String>,
162161
}
163162

164163
impl Peer {

0 commit comments

Comments
 (0)