Skip to content

Commit

Permalink
- Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulkhairwar committed Dec 7, 2021
1 parent 3267a84 commit fd819cb
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 15 deletions.
3 changes: 1 addition & 2 deletions interceptors/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
"testing"
"time"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite"
Expand All @@ -22,6 +20,7 @@ import (
"google.golang.org/grpc/status"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/interceptors/auth"
"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"
"github.com/grpc-ecosystem/go-grpc-middleware/v2/testing/testpb"
)

Expand Down
4 changes: 2 additions & 2 deletions interceptors/auth/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"context"
"strings"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions interceptors/auth/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"context"
"testing"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"

"github.com/stretchr/testify/assert"
"google.golang.org/grpc/codes"
grpcMetadata "google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"
)

func TestAuthFromMD(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions interceptors/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
"sync"
"time"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"

"golang.org/x/net/trace"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
grpcMetadata "google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions metadata/metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"context"
"testing"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"

"github.com/stretchr/testify/assert"
grpcMetadata "google.golang.org/grpc/metadata"

"github.com/grpc-ecosystem/go-grpc-middleware/v2/metadata"
)

var parentKey struct{}
Expand Down
16 changes: 11 additions & 5 deletions testing/testpb/test.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions testing/testpb/test_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd819cb

Please sign in to comment.