mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 16:06:00 -04:00
Use if instead of match for boolean
This commit is contained in:
parent
e4046e6791
commit
3a432e8233
@ -112,9 +112,10 @@ async fn main() -> Result<()> {
|
||||
|
||||
let tor_conf = tor_conf(None, tor_control_port, tor_proxy_port);
|
||||
|
||||
let transport = match tor {
|
||||
true => build_tor(local_key_pair, None, tor_conf)?,
|
||||
false => build(local_key_pair)?,
|
||||
let transport = if tor {
|
||||
build_tor(local_key_pair, None, tor_conf)?
|
||||
} else {
|
||||
build(local_key_pair)?
|
||||
};
|
||||
|
||||
let bitcoin_wallet = bitcoin::Wallet::new("bob", bitcoind_url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user