Cosmetic lint warning fixes (#8363)

pull/8366/head
Bryan Boreham 2 years ago committed by GitHub
parent eb20455d77
commit c3c9ac7740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      clients/cmd/promtail/main.go
  2. 9
      clients/pkg/promtail/targets/gcplog/pull_target.go
  3. 5
      clients/pkg/promtail/targets/gcplog/pull_target_test.go
  4. 2
      cmd/loki-canary/main.go
  5. 3
      pkg/logproto/alias.go

@ -6,6 +6,7 @@ import (
"os"
"reflect"
"sync"
// embed time zone data
_ "time/tzdata"

@ -1,17 +1,18 @@
package gcplog
import (
"cloud.google.com/go/pubsub"
"context"
"io"
"sync"
"time"
"cloud.google.com/go/pubsub"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/grafana/dskit/backoff"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/relabel"
"google.golang.org/api/option"
"io"
"sync"
"time"
"github.com/grafana/loki/clients/pkg/promtail/api"
"github.com/grafana/loki/clients/pkg/promtail/scrapeconfig"

@ -2,12 +2,13 @@ package gcplog
import (
"context"
"github.com/grafana/dskit/backoff"
"github.com/pkg/errors"
"io"
"testing"
"time"
"github.com/grafana/dskit/backoff"
"github.com/pkg/errors"
"cloud.google.com/go/pubsub"
"github.com/go-kit/log"
"github.com/grafana/loki/clients/pkg/promtail/client/fake"

@ -99,7 +99,7 @@ func main() {
}
if *addr == "" {
_, _ = fmt.Fprintf(os.Stderr, "Must specify a Loki address with -addr or set the environemnt variable LOKI_ADDRESS\n")
_, _ = fmt.Fprintf(os.Stderr, "Must specify a Loki address with -addr or set the environment variable LOKI_ADDRESS\n")
os.Exit(1)
}

@ -1,8 +1,9 @@
package logproto
import (
"github.com/grafana/loki/pkg/push"
"google.golang.org/grpc"
"github.com/grafana/loki/pkg/push"
)
// Aliases to avoid renaming all the imports of logproto

Loading…
Cancel
Save