Skip to content

Commit

Permalink
correct mistake in the var name
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayurii committed Nov 25, 2024
1 parent 691ea83 commit 40a8890
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion database/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ lazy_static! {
&["method_name", "table_name"]
)
.unwrap();
pub(crate) static ref ACCOUTS_DATABASE_READ_QUERIES: IntCounterVec = register_int_counter_vec(
pub(crate) static ref ACCOUNTS_DATABASE_READ_QUERIES: IntCounterVec = register_int_counter_vec(
"account_database_read_queries_counter",
"Total number of accounts database reads queries by method_name and table_name",
&["account_id", "shard_id", "method_name", "table_name"]
Expand Down
16 changes: 8 additions & 8 deletions database/src/postgres/rpc_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
"state_changes_data",
])
.inc();
crate::metrics::ACCOUTS_DATABASE_READ_QUERIES
crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES
.with_label_values(&[
account_id.as_ref(),
&shard_id_pool.shard_id.to_string(),
Expand Down Expand Up @@ -158,7 +158,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
"state_changes_data",
])
.inc();
crate::metrics::ACCOUTS_DATABASE_READ_QUERIES
crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES
.with_label_values(&[
account_id.as_ref(),
&shard_id_pool.shard_id.to_string(),
Expand Down Expand Up @@ -223,7 +223,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
"state_changes_data",
])
.inc();
crate::metrics::ACCOUTS_DATABASE_READ_QUERIES
crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES
.with_label_values(&[
account_id.as_ref(),
&shard_id_pool.shard_id.to_string(),
Expand Down Expand Up @@ -288,7 +288,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
"state_changes_data",
])
.inc();
crate::metrics::ACCOUTS_DATABASE_READ_QUERIES
crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES
.with_label_values(&[
account_id.as_ref(),
&shard_id_pool.shard_id.to_string(),
Expand Down Expand Up @@ -329,7 +329,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
"state_changes_account",
])
.inc();
crate::metrics::ACCOUTS_DATABASE_READ_QUERIES
crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES
.with_label_values(&[
account_id.as_ref(),
&shard_id_pool.shard_id.to_string(),
Expand Down Expand Up @@ -374,7 +374,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
"state_changes_contract",
])
.inc();
crate::metrics::ACCOUTS_DATABASE_READ_QUERIES
crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES
.with_label_values(&[
account_id.as_ref(),
&shard_id_pool.shard_id.to_string(),
Expand Down Expand Up @@ -420,7 +420,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
"state_changes_access_key",
])
.inc();
crate::metrics::ACCOUTS_DATABASE_READ_QUERIES
crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES
.with_label_values(&[
account_id.as_ref(),
&shard_id_pool.shard_id.to_string(),
Expand Down Expand Up @@ -468,7 +468,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
"state_changes_access_key",
])
.inc();
crate::metrics::ACCOUTS_DATABASE_READ_QUERIES
crate::metrics::ACCOUNTS_DATABASE_READ_QUERIES
.with_label_values(&[
account_id.as_ref(),
&shard_id_pool.shard_id.to_string(),
Expand Down

0 comments on commit 40a8890

Please sign in to comment.