Skip to content

Commit 36ec343

Browse files
committed
fix unused
Signed-off-by: vl4deee11 <[email protected]>
1 parent 58d15ed commit 36ec343

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmd/postgres_exporter/postgres_exporter.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"database/sql"
1919
"errors"
2020
"fmt"
21+
"gopkg.in/alecthomas/kingpin.v2"
2122
"gopkg.in/yaml.v2"
2223
"io/ioutil"
2324
"math"
@@ -118,12 +119,11 @@ type Mapping map[string]MappingOptions
118119

119120
// nolint: golint
120121
type UserQuery struct {
121-
Query string `yaml:"query"`
122-
Metrics []Mapping `yaml:"metrics"`
123-
BreakingChanges []BreakingChanges `yaml:"breakingChanges"`
124-
Master bool `yaml:"master"` // Querying only for master database
125-
CacheSeconds uint64 `yaml:"cache_seconds"` // Number of seconds to cache the namespace result metrics for.
126-
RunOnServer string `yaml:"runonserver"` // Querying to run on which server version
122+
Query string `yaml:"query"`
123+
Metrics []Mapping `yaml:"metrics"`
124+
Master bool `yaml:"master"` // Querying only for master database
125+
CacheSeconds uint64 `yaml:"cache_seconds"` // Number of seconds to cache the namespace result metrics for.
126+
RunOnServer string `yaml:"runonserver"` // Querying to run on which server version
127127
}
128128

129129
// nolint: golint

0 commit comments

Comments
 (0)