Cleanup metrics (#4230)
This commit is contained in:
@ -4,7 +4,7 @@ use crate::exchange_instruction::*;
|
||||
use crate::exchange_state::*;
|
||||
use crate::id;
|
||||
use log::*;
|
||||
use solana_metrics::counter::Counter;
|
||||
use solana_metrics::inc_new_counter_info;
|
||||
use solana_sdk::account::KeyedAccount;
|
||||
use solana_sdk::instruction::InstructionError;
|
||||
use solana_sdk::pubkey::Pubkey;
|
||||
@ -390,7 +390,7 @@ impl ExchangeProcessor {
|
||||
Err(e)?
|
||||
}
|
||||
|
||||
inc_new_counter_info!("exchange_processor-swap", 1, 1000, 1000);
|
||||
inc_new_counter_info!("exchange_processor-swaps", 1, 1000, 1000);
|
||||
|
||||
if to_trade.tokens == 0 {
|
||||
// Turn into token account
|
||||
|
Reference in New Issue
Block a user