From 1ec69c9168c042314b8ef67360ba8e18f0e4fd84 Mon Sep 17 00:00:00 2001 From: Zachary Caldarola Date: Sat, 28 Jan 2023 17:37:41 -0500 Subject: [PATCH] fmt Signed-off-by: Zachary Caldarola --- collector/replication_slots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collector/replication_slots.go b/collector/replication_slots.go index e1c2f0a..8705f69 100644 --- a/collector/replication_slots.go +++ b/collector/replication_slots.go @@ -78,7 +78,7 @@ func (PGReplicationSlotCollector) Update(ctx context.Context, db *sql.DB, ch cha pgReplicationSlot["current_wal_lsn"], prometheus.GaugeValue, float64(wal_lsn), slot_name, ) - if (is_active == 1) { + if is_active == 1 { ch <- prometheus.MustNewConstMetric( pgReplicationSlot["confirmed_flush_lsn"], prometheus.GaugeValue, float64(flush_lsn), slot_name,