mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
fix lint issues
This commit is contained in:
@@ -334,7 +334,7 @@ fn push_address_stats(lines: &mut Vec<String>) {
|
|||||||
{
|
{
|
||||||
grouped_metrics
|
grouped_metrics
|
||||||
.entry(key)
|
.entry(key)
|
||||||
.or_insert_with(Vec::new)
|
.or_default()
|
||||||
.push(prometheus_metric);
|
.push(prometheus_metric);
|
||||||
} else {
|
} else {
|
||||||
debug!("Metric {} not implemented for {}", key, address.name());
|
debug!("Metric {} not implemented for {}", key, address.name());
|
||||||
@@ -364,7 +364,7 @@ fn push_pool_stats(lines: &mut Vec<String>) {
|
|||||||
{
|
{
|
||||||
grouped_metrics
|
grouped_metrics
|
||||||
.entry(name)
|
.entry(name)
|
||||||
.or_insert_with(Vec::new)
|
.or_default()
|
||||||
.push(prometheus_metric);
|
.push(prometheus_metric);
|
||||||
} else {
|
} else {
|
||||||
debug!("Metric {} not implemented for ({})", name, *pool_id);
|
debug!("Metric {} not implemented for ({})", name, *pool_id);
|
||||||
@@ -400,7 +400,7 @@ fn push_database_stats(lines: &mut Vec<String>) {
|
|||||||
{
|
{
|
||||||
grouped_metrics
|
grouped_metrics
|
||||||
.entry(key.to_string())
|
.entry(key.to_string())
|
||||||
.or_insert_with(Vec::new)
|
.or_default()
|
||||||
.push(prometheus_metric);
|
.push(prometheus_metric);
|
||||||
} else {
|
} else {
|
||||||
debug!("Metric {} not implemented for {}", key, address.name());
|
debug!("Metric {} not implemented for {}", key, address.name());
|
||||||
@@ -474,7 +474,7 @@ fn push_server_stats(lines: &mut Vec<String>) {
|
|||||||
{
|
{
|
||||||
grouped_metrics
|
grouped_metrics
|
||||||
.entry(key.to_string())
|
.entry(key.to_string())
|
||||||
.or_insert_with(Vec::new)
|
.or_default()
|
||||||
.push(prometheus_metric);
|
.push(prometheus_metric);
|
||||||
} else {
|
} else {
|
||||||
debug!("Metric {} not implemented for {}", key, address.name());
|
debug!("Metric {} not implemented for {}", key, address.name());
|
||||||
|
|||||||
Reference in New Issue
Block a user