@@ -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" ) ) ]
169153impl < 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" ) ) ]
200169impl < 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+
273236impl_quic_phase_with_websocket ! (
274237 "tokio" ,
275238 super :: provider:: Tokio ,
0 commit comments