mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-05 04:54:36 -04:00
Merge #339
339: Bump dependency versions r=thomaseizinger a=thomaseizinger Otherwise it will take a long time for dependabot to update all of these. Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
This commit is contained in:
commit
968502827a
4 changed files with 424 additions and 410 deletions
|
@ -3,7 +3,7 @@ use libp2p::core::muxing::StreamMuxerBox;
|
|||
use libp2p::core::transport::Boxed;
|
||||
use libp2p::core::upgrade::{SelectUpgrade, Version};
|
||||
use libp2p::core::{identity, Transport};
|
||||
use libp2p::dns::DnsConfig;
|
||||
use libp2p::dns::TokioDnsConfig;
|
||||
use libp2p::mplex::MplexConfig;
|
||||
use libp2p::noise::{self, NoiseConfig, X25519Spec};
|
||||
use libp2p::{yamux, PeerId};
|
||||
|
@ -20,7 +20,7 @@ pub fn build(id_keys: &identity::Keypair) -> Result<SwapTransport> {
|
|||
let noise = NoiseConfig::xx(dh_keys).into_authenticated();
|
||||
|
||||
let tcp = TokioTcpConfig::new().nodelay(true);
|
||||
let dns = DnsConfig::new(tcp)?;
|
||||
let dns = TokioDnsConfig::system(tcp)?;
|
||||
|
||||
let transport = dns
|
||||
.upgrade(Version::V1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue