Skip to content

Commit

Permalink
more linter fixes (grafana#2024)
Browse files Browse the repository at this point in the history
* more linter woes

Signed-off-by: Ed Welch <[email protected]>

* feedback

Signed-off-by: Ed Welch <[email protected]>
  • Loading branch information
slim-bean authored Apr 30, 2020
1 parent 4f9a2fe commit 272a89c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
5 changes: 3 additions & 2 deletions pkg/distributor/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package distributor

import (
"errors"
cortex_client "github.com/cortexproject/cortex/pkg/ingester/client"
"github.com/weaveworks/common/httpgrpc"
"net/http"
"strings"
"time"

cortex_client "github.com/cortexproject/cortex/pkg/ingester/client"
"github.com/weaveworks/common/httpgrpc"

"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/util"
"github.com/grafana/loki/pkg/util/validation"
Expand Down
12 changes: 7 additions & 5 deletions pkg/distributor/validator_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
package distributor

import (
"github.com/cortexproject/cortex/pkg/util/flagext"
"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/util/validation"
"github.com/stretchr/testify/assert"
"github.com/weaveworks/common/httpgrpc"
"net/http"
"testing"
"time"

"github.com/cortexproject/cortex/pkg/util/flagext"
"github.com/stretchr/testify/assert"
"github.com/weaveworks/common/httpgrpc"

"github.com/grafana/loki/pkg/logproto"
"github.com/grafana/loki/pkg/util/validation"
)

var testStreamLabels = "FIXME"
Expand Down
4 changes: 2 additions & 2 deletions pkg/ingester/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ package ingester

import (
"context"
"github.com/go-kit/kit/log/level"
"github.com/grafana/loki/pkg/util/validation"
"net/http"
"sync"
"time"

"github.com/go-kit/kit/log/level"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
Expand All @@ -27,6 +26,7 @@ import (
"github.com/grafana/loki/pkg/logql"
"github.com/grafana/loki/pkg/logql/stats"
"github.com/grafana/loki/pkg/util"
"github.com/grafana/loki/pkg/util/validation"
)

const queryBatchSize = 128
Expand Down
3 changes: 2 additions & 1 deletion pkg/util/validation/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package validation

import (
"fmt"
"github.com/prometheus/client_golang/prometheus"
"time"

"github.com/prometheus/client_golang/prometheus"
)

const (
Expand Down

0 comments on commit 272a89c

Please sign in to comment.