Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky committed Oct 16, 2023
1 parent 459e3d5 commit b748386
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ pub struct Endpoint {
pub address: EndpointAddress,
#[serde(default)]
pub metadata: EndpointMetadata,
#[serde(skip, default)]
pub sessions: std::sync::Arc<std::sync::atomic::AtomicUsize>,
}

impl Endpoint {
Expand All @@ -62,7 +60,6 @@ impl Default for Endpoint {
Self {
address: EndpointAddress::UNSPECIFIED,
metadata: <_>::default(),
sessions: <_>::default(),
}
}
}
Expand Down Expand Up @@ -99,7 +96,6 @@ impl TryFrom<crate::cluster::proto::Endpoint> for Endpoint {

Ok(Self {
address: (host, endpoint.port as u16).into(),
sessions: <_>::default(),
metadata: endpoint
.metadata
.map(TryFrom::try_from)
Expand Down

0 comments on commit b748386

Please sign in to comment.