increment MESSAGES_IN_POSTGRES_CHANNEL

This commit is contained in:
aniketfuryrocks 2023-03-21 16:35:47 +05:30
parent a2baf4077a
commit 6ab141bb7f
No known key found for this signature in database
GPG Key ID: FA6BFCFAA7D4B764
2 changed files with 4 additions and 1 deletions

View File

@ -315,6 +315,7 @@ impl BlockListener {
parent_slot: parent_slot as i64,
}))
.expect("Error sending block to postgres service");
MESSAGES_IN_POSTGRES_CHANNEL.inc();
}

View File

@ -21,7 +21,7 @@ use tokio::{
use crate::{
bridge::TXS_IN_CHANNEL,
tpu_manager::TpuManager,
workers::{PostgresMsg, PostgresTx},
workers::{PostgresMsg, PostgresTx, MESSAGES_IN_POSTGRES_CHANNEL},
};
use super::PostgresMpscSend;
@ -141,6 +141,8 @@ impl TxSender {
postgres
.send(PostgresMsg::PostgresTx(txs))
.expect("Error writing to postgres service");
MESSAGES_IN_POSTGRES_CHANNEL.inc();
}
}