Skip to content

Commit

Permalink
remove unused prefer_ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
Stennsen committed Jul 6, 2024
1 parent 994a7ee commit 7563461
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ impl<T: 'static + Transport> Client<T> {
let handle = ControlChannelHandle::new(
(*config).clone(),
self.config.remote_addr.clone(),
self.config.prefer_ipv6,
self.transport.clone(),
self.config.heartbeat_timeout,
);
Expand Down Expand Up @@ -153,7 +152,6 @@ impl<T: 'static + Transport> Client<T> {
let handle = ControlChannelHandle::new(
cfg,
self.config.remote_addr.clone(),
self.config.prefer_ipv6,
self.transport.clone(),
self.config.heartbeat_timeout,
);
Expand Down Expand Up @@ -392,7 +390,6 @@ struct ControlChannel<T: Transport> {
service: ClientServiceConfig, // `[client.services.foo]` config block
shutdown_rx: oneshot::Receiver<u8>, // Receives the shutdown signal
remote_addr: String, // `client.remote_addr`
prefer_ipv6: Option<bool>,
transport: Arc<T>, // Wrapper around the transport layer
heartbeat_timeout: u64, // Application layer heartbeat timeout in secs
}
Expand Down Expand Up @@ -502,7 +499,6 @@ impl ControlChannelHandle {
fn new<T: 'static + Transport>(
service: ClientServiceConfig,
remote_addr: String,
prefer_ipv6: Option<bool>,
transport: Arc<T>,
heartbeat_timeout: u64,
) -> ControlChannelHandle {
Expand All @@ -518,7 +514,6 @@ impl ControlChannelHandle {
service,
shutdown_rx,
remote_addr,
prefer_ipv6,
transport,
heartbeat_timeout,
};
Expand Down

0 comments on commit 7563461

Please sign in to comment.