Skip to content

Commit

Permalink
fix check: fixed tsdb MultiError package import
Browse files Browse the repository at this point in the history
  • Loading branch information
FUSAKLA committed Jun 8, 2019
1 parent e4af265 commit aa52024
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/thanos/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/opentracing/opentracing-go"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/prometheus/pkg/rulefmt"
"github.com/prometheus/tsdb"
"github.com/prometheus/tsdb/errors"
"gopkg.in/alecthomas/kingpin.v2"
"gopkg.in/yaml.v2"
)
Expand All @@ -34,7 +34,7 @@ func registerCheckRules(m map[string]setupFunc, root *kingpin.CmdClause, name st
}

func checkRulesFiles(logger log.Logger, files *[]string) error {
failed := tsdb.MultiError{}
failed := errors.MultiError{}

for _, f := range *files {
n, errs := checkRules(logger, f)
Expand Down Expand Up @@ -64,9 +64,9 @@ type ThanosRuleGroups struct {
Groups []ThanosRuleGroup `yaml:"groups"`
}

func checkRules(logger log.Logger, filename string) (int, tsdb.MultiError) {
func checkRules(logger log.Logger, filename string) (int, errors.MultiError) {
level.Info(logger).Log("msg", "checking", "filename", filename)
checkErrors := tsdb.MultiError{}
checkErrors := errors.MultiError{}

b, err := ioutil.ReadFile(filename)
if err != nil {
Expand Down

0 comments on commit aa52024

Please sign in to comment.