From aa5202402bb2b357cc0b624c4473741bbd6c84ac Mon Sep 17 00:00:00 2001 From: Martin Chodur Date: Sat, 8 Jun 2019 22:04:17 +0200 Subject: [PATCH] fix check: fixed tsdb MultiError package import --- cmd/thanos/check.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/thanos/check.go b/cmd/thanos/check.go index 696634be0fb..4e1194e109b 100644 --- a/cmd/thanos/check.go +++ b/cmd/thanos/check.go @@ -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" ) @@ -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) @@ -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 {