mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-11-11 13:10:39 +00:00
Apply suggestions from code review
Co-authored-by: Daniel Karzel <daniel.karzel@coblox.tech>
This commit is contained in:
parent
fc0cceb180
commit
26e0383e17
@ -106,7 +106,7 @@ pub fn read_config(config_path: PathBuf) -> Result<Result<Config, ConfigNotIniti
|
|||||||
if config_path.exists() {
|
if config_path.exists() {
|
||||||
info!(
|
info!(
|
||||||
path = %config_path.display(),
|
path = %config_path.display(),
|
||||||
"Using config file at path",
|
"Using config file at",
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return Ok(Err(ConfigNotInitialized {}));
|
return Ok(Err(ConfigNotInitialized {}));
|
||||||
|
@ -91,7 +91,7 @@ async fn main() -> Result<()> {
|
|||||||
let monero_address = monero_wallet.get_main_address();
|
let monero_address = monero_wallet.get_main_address();
|
||||||
warn!(
|
warn!(
|
||||||
%monero_address,
|
%monero_address,
|
||||||
"The Monero balance is 0, make sure to deposit funds",
|
"The Monero balance is 0, make sure to deposit funds at",
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
info!(%monero_balance, "Initialized Monero wallet");
|
info!(%monero_balance, "Initialized Monero wallet");
|
||||||
|
@ -161,7 +161,7 @@ impl Wallet {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if Some(new_status) != last_status {
|
if Some(new_status) != last_status {
|
||||||
tracing::debug!(%txid, status = %new_status, "Transaction status");
|
tracing::debug!(%txid, status = %new_status, "Transaction");
|
||||||
}
|
}
|
||||||
|
|
||||||
last_status = Some(new_status);
|
last_status = Some(new_status);
|
||||||
|
@ -122,8 +122,8 @@ impl WalletRpc {
|
|||||||
.port();
|
.port();
|
||||||
|
|
||||||
tracing::debug!(
|
tracing::debug!(
|
||||||
monero_wallet_rpc_port = %port,
|
%port,
|
||||||
"Starting monero-wallet-rpc on port"
|
"Starting monero-wallet-rpc on"
|
||||||
);
|
);
|
||||||
|
|
||||||
let mut child = Command::new(self.exec_path())
|
let mut child = Command::new(self.exec_path())
|
||||||
|
Loading…
Reference in New Issue
Block a user