Skip to content

Commit b6ff882

Browse files
committed
Fix linter errors
1 parent d5500ce commit b6ff882

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

collector/pg_stat_wal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func statWALQuery(columns []string) string {
103103
return fmt.Sprintf("SELECT %s FROM pg_stat_wal;", strings.Join(columns, ","))
104104
}
105105

106-
func (c *PGStatWALCollector) Update(ctx context.Context, instance *instance, ch chan<- prometheus.Metric) error {
106+
func (c *PGStatWALCollector) Update(ctx context.Context, instance *Instance, ch chan<- prometheus.Metric) error {
107107
db := instance.getDB()
108108

109109
columns := []string{

collector/pg_stat_wal_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func TestPGStatWALCollector(t *testing.T) {
3030
}
3131
defer db.Close()
3232

33-
inst := &instance{db: db}
33+
inst := &Instance{db: db}
3434

3535
columns := []string{
3636
"wal_records", // bigint
@@ -93,7 +93,7 @@ func TestPGStatWALCollectorNullValues(t *testing.T) {
9393
}
9494
defer db.Close()
9595

96-
inst := &instance{db: db}
96+
inst := &Instance{db: db}
9797
columns := []string{
9898
"wal_records", // bigint
9999
"wal_fpi", // bigint

0 commit comments

Comments
 (0)