Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 404cec3

Browse files
authored
Remove redundant alias (#530)
1 parent 68fdfa2 commit 404cec3

File tree

14 files changed

+18
-18
lines changed

14 files changed

+18
-18
lines changed

pkg/agent/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55

66
"github.com/bufbuild/connect-go"
77
"github.com/pkg/errors"
8-
durationpb "google.golang.org/protobuf/types/known/durationpb"
9-
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
8+
"google.golang.org/protobuf/types/known/durationpb"
9+
"google.golang.org/protobuf/types/known/timestamppb"
1010

1111
agentv1 "github.com/grafana/phlare/api/gen/proto/go/agent/v1"
1212
"github.com/grafana/phlare/api/gen/proto/go/agent/v1/agentv1connect"

pkg/objstore/client/factory_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/grafana/dskit/flagext"
1818
"github.com/stretchr/testify/assert"
1919
"github.com/stretchr/testify/require"
20-
yaml "gopkg.in/yaml.v3"
20+
"gopkg.in/yaml.v3"
2121

2222
"github.com/grafana/phlare/pkg/objstore/providers/filesystem"
2323
)

pkg/objstore/providers/azure/bucket_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"github.com/go-kit/log"
1010
"github.com/thanos-io/objstore"
1111
"github.com/thanos-io/objstore/providers/azure"
12-
yaml "gopkg.in/yaml.v3"
12+
"gopkg.in/yaml.v3"
1313
)
1414

1515
func NewBucketClient(cfg Config, name string, logger log.Logger) (objstore.Bucket, error) {

pkg/objstore/providers/gcs/bucket_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/go-kit/log"
1212
"github.com/thanos-io/objstore"
1313
"github.com/thanos-io/objstore/providers/gcs"
14-
yaml "gopkg.in/yaml.v3"
14+
"gopkg.in/yaml.v3"
1515
)
1616

1717
// NewBucketClient creates a new GCS bucket client

pkg/objstore/providers/swift/bucket_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/prometheus/common/model"
1111
"github.com/thanos-io/objstore"
1212
"github.com/thanos-io/objstore/providers/swift"
13-
yaml "gopkg.in/yaml.v3"
13+
"gopkg.in/yaml.v3"
1414
)
1515

1616
// NewBucketClient creates a new Swift bucket client

pkg/phlare/modules.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ import (
2929

3030
agentv1 "github.com/grafana/phlare/api/gen/proto/go/agent/v1"
3131
"github.com/grafana/phlare/api/gen/proto/go/agent/v1/agentv1connect"
32-
ingesterv1connect "github.com/grafana/phlare/api/gen/proto/go/ingester/v1/ingesterv1connect"
32+
"github.com/grafana/phlare/api/gen/proto/go/ingester/v1/ingesterv1connect"
3333
"github.com/grafana/phlare/api/gen/proto/go/push/v1/pushv1connect"
3434
"github.com/grafana/phlare/api/gen/proto/go/querier/v1/querierv1connect"
3535
statusv1 "github.com/grafana/phlare/api/gen/proto/go/status/v1"
3636
"github.com/grafana/phlare/api/openapiv2"
3737
"github.com/grafana/phlare/pkg/agent"
3838
"github.com/grafana/phlare/pkg/distributor"
39-
frontend "github.com/grafana/phlare/pkg/frontend"
39+
"github.com/grafana/phlare/pkg/frontend"
4040
"github.com/grafana/phlare/pkg/frontend/frontendpb/frontendpbconnect"
4141
"github.com/grafana/phlare/pkg/ingester"
4242
objstoreclient "github.com/grafana/phlare/pkg/objstore/client"

pkg/phlare/phlare.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ import (
3030
"github.com/weaveworks/common/signals"
3131
wwtracing "github.com/weaveworks/common/tracing"
3232

33-
pushv1connect "github.com/grafana/phlare/api/gen/proto/go/push/v1/pushv1connect"
33+
"github.com/grafana/phlare/api/gen/proto/go/push/v1/pushv1connect"
3434
"github.com/grafana/phlare/pkg/agent"
3535
"github.com/grafana/phlare/pkg/cfg"
3636
"github.com/grafana/phlare/pkg/distributor"
37-
frontend "github.com/grafana/phlare/pkg/frontend"
37+
"github.com/grafana/phlare/pkg/frontend"
3838
"github.com/grafana/phlare/pkg/ingester"
3939
"github.com/grafana/phlare/pkg/objstore"
4040
objstoreclient "github.com/grafana/phlare/pkg/objstore/client"

pkg/phlaredb/block_querier.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
phlareobjstore "github.com/grafana/phlare/pkg/objstore"
3838
phlarecontext "github.com/grafana/phlare/pkg/phlare/context"
3939
"github.com/grafana/phlare/pkg/phlaredb/block"
40-
query "github.com/grafana/phlare/pkg/phlaredb/query"
40+
"github.com/grafana/phlare/pkg/phlaredb/query"
4141
schemav1 "github.com/grafana/phlare/pkg/phlaredb/schemas/v1"
4242
"github.com/grafana/phlare/pkg/phlaredb/tsdb/index"
4343
)

pkg/phlaredb/head_queriers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
ingestv1 "github.com/grafana/phlare/api/gen/proto/go/ingester/v1"
1515
typesv1 "github.com/grafana/phlare/api/gen/proto/go/types/v1"
1616
"github.com/grafana/phlare/pkg/iter"
17-
query "github.com/grafana/phlare/pkg/phlaredb/query"
17+
"github.com/grafana/phlare/pkg/phlaredb/query"
1818
schemav1 "github.com/grafana/phlare/pkg/phlaredb/schemas/v1"
1919
)
2020

pkg/phlaredb/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"github.com/prometheus/client_golang/prometheus/promauto"
88

99
phlarecontext "github.com/grafana/phlare/pkg/phlare/context"
10-
query "github.com/grafana/phlare/pkg/phlaredb/query"
10+
"github.com/grafana/phlare/pkg/phlaredb/query"
1111
)
1212

1313
type contextKey uint8

0 commit comments

Comments
 (0)