-
Trying to upgrade from 0.52 to 0.53, and I seem to have lost access to being able to configure Quic. let mut swarm = SwarmBuilder::with_existing_identity(KEYS.clone())
.with_async_std()
.with_quic()
.with_behaviour(|_| {
Behaviour{
discovery: discovery::Behaviour::new(cfg.clone()),
messagebus: messagebus::Behaviour::new(cfg.clone()),
}
})
.unwrap()
.with_swarm_config(|conf| {
conf.with_idle_connection_timeout(Duration::from_secs(Duration::MAX.as_secs() / 2))
})
.build(); works just great. But I'd like to tweak the Quic config, and if I change to: let mut swarm = SwarmBuilder::with_existing_identity(KEYS.clone())
.with_async_std()
.with_quic_config(|conf| {
conf
})
.with_behaviour(|_| {
Behaviour{
discovery: discovery::Behaviour::new(cfg.clone()),
messagebus: messagebus::Behaviour::new(cfg.clone()),
}
})
.unwrap()
.with_swarm_config(|conf| {
conf.with_idle_connection_timeout(Duration::from_secs(Duration::MAX.as_secs() / 2))
})
.build(); I get an error:
However I'm not in a TcpPhase. In fact, by looking at the source code, it appears that all from my Cargo.toml
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is a bug, the equivalent shortcut for |
Beta Was this translation helpful? Give feedback.
-
Closing here with #4821 merged. |
Beta Was this translation helpful? Give feedback.
This is a bug, the equivalent shortcut for
with_quic_config
is missing. Can you open an issue?