mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-02 14:56:10 -04:00
Do not declare 'port' variable
This commit is contained in:
parent
464b699426
commit
a1351e5461
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue