mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-11-19 09:25:33 +00:00
make new_swarm public
This commit is contained in:
parent
9e13034e54
commit
2db9ebd28b
@ -280,7 +280,11 @@ pub async fn swap(
|
|||||||
|
|
||||||
pub type Swarm = libp2p::Swarm<Behaviour>;
|
pub type Swarm = libp2p::Swarm<Behaviour>;
|
||||||
|
|
||||||
fn new_swarm(listen: Multiaddr, transport: SwapTransport, behaviour: Behaviour) -> Result<Swarm> {
|
pub fn new_swarm(
|
||||||
|
listen: Multiaddr,
|
||||||
|
transport: SwapTransport,
|
||||||
|
behaviour: Behaviour,
|
||||||
|
) -> Result<Swarm> {
|
||||||
use anyhow::Context as _;
|
use anyhow::Context as _;
|
||||||
|
|
||||||
let local_peer_id = behaviour.peer_id();
|
let local_peer_id = behaviour.peer_id();
|
||||||
|
Loading…
Reference in New Issue
Block a user