From 87f928f56cb456124576f6e3c2c2b2773d12db1d Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 4 Mar 2021 16:55:40 +1100 Subject: [PATCH] Move const to function where it is used --- swap/src/bin/swap_cli.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swap/src/bin/swap_cli.rs b/swap/src/bin/swap_cli.rs index 404c82a6..9d95e41e 100644 --- a/swap/src/bin/swap_cli.rs +++ b/swap/src/bin/swap_cli.rs @@ -37,8 +37,6 @@ use uuid::Uuid; #[macro_use] extern crate prettytable; -const MONERO_BLOCKCHAIN_MONITORING_WALLET_NAME: &str = "swap-tool-blockchain-monitoring-wallet"; - #[tokio::main] async fn main() -> Result<()> { let args = Arguments::from_args(); @@ -271,6 +269,8 @@ async fn init_monero_wallet( monero_network: monero::Network, config: &Config, ) -> Result<(monero::Wallet, monero::WalletRpcProcess)> { + const MONERO_BLOCKCHAIN_MONITORING_WALLET_NAME: &str = "swap-tool-blockchain-monitoring-wallet"; + let monero_wallet_rpc = monero::WalletRpc::new(config.data.dir.join("monero")).await?; let monero_wallet_rpc_process = monero_wallet_rpc