Skip to content

Commit

Permalink
chore(c-bridge): stick evm metrics together
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Aug 21, 2024
1 parent f621c07 commit e00acd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridges/centralized-ethereum/src/actors/watch_dog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ impl WatchDog {
let mut metrics: String = "{".to_string();
metrics.push_str(&format!("\"drsFinished\": {drs_finished}, "));
metrics.push_str(&format!("\"drsPending\": {drs_pending}, "));
metrics.push_str(&format!("\"evmAccount\": \"{eth_account}\", "));

if let Some(wit_client) = wit_client {
if let Err(err) = check_wit_connection_status(&wit_client).await {
Expand Down Expand Up @@ -205,6 +204,7 @@ impl WatchDog {

if eth_balance.is_some() {
let eth_balance = eth_balance.unwrap();
metrics.push_str(&format!("\"evmAccount\": \"{eth_account}\", "));
metrics.push_str(&format!("\"evmBalance\": {:.5}, ", eth_balance));
metrics.push_str(&format!("\"evmContract\": \"{eth_contract_address}\", "));
if let Some(start_eth_balance) = start_eth_balance {
Expand Down

0 comments on commit e00acd7

Please sign in to comment.