Skip to content

Commit 6cec9c1

Browse files
author
Sylvain Rabot
committed
Rename tsdb_errors to tsdberrors
Signed-off-by: Sylvain Rabot <[email protected]>
1 parent 9ccfea9 commit 6cec9c1

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

pkg/compact/downsample/downsample.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/prometheus/tsdb"
1717
"github.com/prometheus/tsdb/chunkenc"
1818
"github.com/prometheus/tsdb/chunks"
19-
tsdb_errors "github.com/prometheus/tsdb/errors"
19+
tsdberrors "github.com/prometheus/tsdb/errors"
2020
"github.com/prometheus/tsdb/index"
2121
"github.com/prometheus/tsdb/labels"
2222
)
@@ -64,7 +64,7 @@ func Downsample(
6464
// Remove blockDir in case of errors.
6565
defer func() {
6666
if err != nil {
67-
var merr tsdb_errors.MultiError
67+
var merr tsdberrors.MultiError
6868
merr.Add(err)
6969
merr.Add(os.RemoveAll(blockDir))
7070
err = merr.Err()

pkg/compact/downsample/streamed_block_writer.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/prometheus/tsdb"
1414
"github.com/prometheus/tsdb/chunks"
1515
"github.com/prometheus/tsdb/fileutil"
16-
tsdb_errors "github.com/prometheus/tsdb/errors"
16+
tsdberrors "github.com/prometheus/tsdb/errors"
1717
"github.com/prometheus/tsdb/index"
1818
"github.com/prometheus/tsdb/labels"
1919
)
@@ -84,7 +84,7 @@ func NewStreamedBlockWriter(
8484
// We should close any opened Closer up to an error.
8585
defer func() {
8686
if err != nil {
87-
var merr tsdb_errors.MultiError
87+
var merr tsdberrors.MultiError
8888
merr.Add(err)
8989
for _, cl := range closers {
9090
merr.Add(cl.Close())
@@ -170,7 +170,7 @@ func (w *streamedBlockWriter) Close() error {
170170
}
171171
w.finalized = true
172172

173-
merr := tsdb_errors.MultiError{}
173+
merr := tsdberrors.MultiError{}
174174

175175
if w.ignoreFinalize {
176176
// Close open file descriptors anyway.

pkg/rule/rule.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/pkg/errors"
1414
"github.com/prometheus/prometheus/pkg/rulefmt"
1515
"github.com/prometheus/prometheus/rules"
16-
tsdb_errors "github.com/prometheus/tsdb/errors"
16+
tsdberrors "github.com/prometheus/tsdb/errors"
1717
yaml "gopkg.in/yaml.v2"
1818
)
1919

@@ -112,7 +112,7 @@ func (r RuleGroup) MarshalYAML() (interface{}, error) {
112112
// special field in RuleGroup file.
113113
func (m *Managers) Update(dataDir string, evalInterval time.Duration, files []string) error {
114114
var (
115-
errs tsdb_errors.MultiError
115+
errs tsdberrors.MultiError
116116
filesMap = map[storepb.PartialResponseStrategy][]string{}
117117
)
118118

pkg/runutil/runutil.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import (
4949
"github.com/go-kit/kit/log"
5050
"github.com/go-kit/kit/log/level"
5151
"github.com/pkg/errors"
52-
tsdb_errors "github.com/prometheus/tsdb/errors"
52+
tsdberrors "github.com/prometheus/tsdb/errors"
5353
)
5454

5555
// Repeat executes f every interval seconds until stopc is closed.
@@ -111,7 +111,7 @@ func CloseWithLogOnErr(logger log.Logger, closer io.Closer, format string, a ...
111111
// CloseWithErrCapture runs function and on error return error by argument including the given error (usually
112112
// from caller function).
113113
func CloseWithErrCapture(err *error, closer io.Closer, format string, a ...interface{}) {
114-
merr := tsdb_errors.MultiError{}
114+
merr := tsdberrors.MultiError{}
115115

116116
merr.Add(*err)
117117
merr.Add(errors.Wrapf(closer.Close(), format, a...))

0 commit comments

Comments
 (0)