mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-07-05 02:51:26 +00:00
Move const to function where it is used
This commit is contained in:
parent
4642e6c0e3
commit
87f928f56c
|
@ -37,8 +37,6 @@ use uuid::Uuid;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate prettytable;
|
extern crate prettytable;
|
||||||
|
|
||||||
const MONERO_BLOCKCHAIN_MONITORING_WALLET_NAME: &str = "swap-tool-blockchain-monitoring-wallet";
|
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
let args = Arguments::from_args();
|
let args = Arguments::from_args();
|
||||||
|
@ -271,6 +269,8 @@ async fn init_monero_wallet(
|
||||||
monero_network: monero::Network,
|
monero_network: monero::Network,
|
||||||
config: &Config,
|
config: &Config,
|
||||||
) -> Result<(monero::Wallet, monero::WalletRpcProcess)> {
|
) -> 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 = monero::WalletRpc::new(config.data.dir.join("monero")).await?;
|
||||||
|
|
||||||
let monero_wallet_rpc_process = monero_wallet_rpc
|
let monero_wallet_rpc_process = monero_wallet_rpc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user