mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -05:00
Do not declare 'port' variable
This commit is contained in:
parent
464b699426
commit
a1351e5461
@ -127,7 +127,7 @@ fn new_swarm(listen: Multiaddr, port: Option<u16>) -> Result<Swarm> {
|
||||
{
|
||||
transport = match port {
|
||||
None => transport::build(local_key_pair)?,
|
||||
Some(port) => anyhow::bail!("local port should not be provided for non-tor usage"),
|
||||
Some(_) => anyhow::bail!("local port should not be provided for non-tor usage"),
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user