Skip to content

Commit 1e08b2b

Browse files
committed
Clean up lint warnings
Signed-off-by: Andrew Bloomgarden <[email protected]>
1 parent 31a7147 commit 1e08b2b

File tree

5 files changed

+19
-16
lines changed

5 files changed

+19
-16
lines changed

integration/alertmanager_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ import (
77
"bytes"
88
"context"
99
"fmt"
10-
"github.com/thanos-io/thanos/pkg/objstore/s3"
1110
"net/http"
1211
"strings"
1312
"testing"
1413
"time"
1514

15+
"github.com/thanos-io/thanos/pkg/objstore/s3"
16+
1617
amlabels "github.com/prometheus/alertmanager/pkg/labels"
1718
"github.com/prometheus/alertmanager/types"
1819
"github.com/prometheus/common/model"

integration/e2ecortex/services.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ func NewIngesterWithConfigFile(name string, store RingStore, address, configFile
187187
name,
188188
image,
189189
e2e.NewCommandWithoutEntrypoint("cortex", e2e.BuildArgs(e2e.MergeFlags(map[string]string{
190-
"-target": "ingester",
191-
"-log.level": "warn",
192-
"-ingester.final-sleep": "0s",
193-
"-ingester.join-after": "0s",
194-
"-ingester.min-ready-duration": "0s",
195-
"-ingester.concurrent-flushes": "10",
196-
"-ingester.num-tokens": "512",
190+
"-target": "ingester",
191+
"-log.level": "warn",
192+
"-ingester.final-sleep": "0s",
193+
"-ingester.join-after": "0s",
194+
"-ingester.min-ready-duration": "0s",
195+
"-ingester.concurrent-flushes": "10",
196+
"-ingester.num-tokens": "512",
197197
}, flags))...),
198198
e2e.NewHTTPReadinessProbe(httpPort, "/ready", 200, 299),
199199
httpPort,
@@ -334,11 +334,11 @@ func NewSingleBinary(name string, flags map[string]string, image string, otherPo
334334
// Distributor.
335335
"-distributor.replication-factor": "1",
336336
// Ingester.
337-
"-ingester.final-sleep": "0s",
338-
"-ingester.join-after": "0s",
339-
"-ingester.min-ready-duration": "0s",
340-
"-ingester.concurrent-flushes": "10",
341-
"-ingester.num-tokens": "512",
337+
"-ingester.final-sleep": "0s",
338+
"-ingester.join-after": "0s",
339+
"-ingester.min-ready-duration": "0s",
340+
"-ingester.concurrent-flushes": "10",
341+
"-ingester.num-tokens": "512",
342342
// Startup quickly.
343343
"-store-gateway.sharding-ring.wait-stability-min-duration": "0",
344344
"-store-gateway.sharding-ring.wait-stability-max-duration": "0",

pkg/alertmanager/alertstore/store.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package alertstore
22

33
import (
44
"context"
5+
56
"github.com/go-kit/log"
67
"github.com/prometheus/client_golang/prometheus"
78

pkg/cortex/cortex_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import (
44
"bytes"
55
"context"
66
"flag"
7-
"github.com/cortexproject/cortex/pkg/ruler/rulestore"
8-
"github.com/cortexproject/cortex/pkg/ruler/rulestore/local"
97
"io"
108
"net"
119
"os"
@@ -14,6 +12,9 @@ import (
1412
"testing"
1513
"time"
1614

15+
"github.com/cortexproject/cortex/pkg/ruler/rulestore"
16+
"github.com/cortexproject/cortex/pkg/ruler/rulestore/local"
17+
1718
"github.com/prometheus/client_golang/prometheus"
1819
"github.com/stretchr/testify/assert"
1920
"github.com/stretchr/testify/require"

pkg/flusher/flusher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818

1919
// Config for an Ingester.
2020
type Config struct {
21-
ExitAfterFlush bool `yaml:"exit_after_flush"`
21+
ExitAfterFlush bool `yaml:"exit_after_flush"`
2222
}
2323

2424
// RegisterFlags adds the flags required to config this to the given FlagSet

0 commit comments

Comments
 (0)