Skip to content

Commit e55318b

Browse files
committed
address merge leftovers
1 parent c0f1be7 commit e55318b

File tree

1 file changed

+1
-38
lines changed

1 file changed

+1
-38
lines changed

libp2p/src/builder/phase/quic.rs

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,6 @@ impl<Provider, T: AuthenticatedMultiplexedTransport> SwarmBuilder<Provider, Quic
149149
.with_behaviour(constructor)
150150
}
151151
}
152-
#[cfg(all(not(target_arch = "wasm32"), feature = "async-std", feature = "dns"))]
153-
impl<T: AuthenticatedMultiplexedTransport> SwarmBuilder<super::provider::AsyncStd, QuicPhase<T>> {
154-
pub fn with_dns(
155-
self,
156-
) -> Result<
157-
SwarmBuilder<
158-
super::provider::AsyncStd,
159-
WebsocketPhase<impl AuthenticatedMultiplexedTransport>,
160-
>,
161-
std::io::Error,
162-
> {
163-
self.without_quic()
164-
.without_any_other_transports()
165-
.with_dns()
166-
}
167-
}
168152
#[cfg(all(not(target_arch = "wasm32"), feature = "tokio", feature = "dns"))]
169153
impl<T: AuthenticatedMultiplexedTransport> SwarmBuilder<super::provider::Tokio, QuicPhase<T>> {
170154
pub fn with_dns(
@@ -181,21 +165,6 @@ impl<T: AuthenticatedMultiplexedTransport> SwarmBuilder<super::provider::Tokio,
181165
.with_dns()
182166
}
183167
}
184-
#[cfg(all(not(target_arch = "wasm32"), feature = "async-std", feature = "dns"))]
185-
impl<T: AuthenticatedMultiplexedTransport> SwarmBuilder<super::provider::AsyncStd, QuicPhase<T>> {
186-
pub fn with_dns_config(
187-
self,
188-
cfg: libp2p_dns::ResolverConfig,
189-
opts: libp2p_dns::ResolverOpts,
190-
) -> SwarmBuilder<
191-
super::provider::AsyncStd,
192-
WebsocketPhase<impl AuthenticatedMultiplexedTransport>,
193-
> {
194-
self.without_quic()
195-
.without_any_other_transports()
196-
.with_dns_config(cfg, opts)
197-
}
198-
}
199168
#[cfg(all(not(target_arch = "wasm32"), feature = "tokio", feature = "dns"))]
200169
impl<T: AuthenticatedMultiplexedTransport> SwarmBuilder<super::provider::Tokio, QuicPhase<T>> {
201170
pub fn with_dns_config(
@@ -263,13 +232,7 @@ macro_rules! impl_quic_phase_with_websocket {
263232
}
264233
}
265234
}
266-
impl_quic_phase_with_websocket!(
267-
"async-std",
268-
super::provider::AsyncStd,
269-
rw_stream_sink::RwStreamSink<
270-
libp2p_websocket::BytesConnection<libp2p_tcp::async_io::TcpStream>,
271-
>
272-
);
235+
273236
impl_quic_phase_with_websocket!(
274237
"tokio",
275238
super::provider::Tokio,

0 commit comments

Comments
 (0)