Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2021-07-11 20:13:28 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2021-07-12 15:03:40 +0300
commitf6be3b5535d1111078002b3657c22f7ae3148713 (patch)
treeacceec4af7fae8067ab329715f84438ee22d8a47 /auth
parent745145608d93908b9ad2c8018093c3c12ae793bc (diff)
Standardise package aliases
It is not common to use snake case names for packages and package aliases in Go. The change renames aliases to a preferred single word name. We also use 'gitaly' prefix for the project-defined packages that clashes with standard or 3-rd party package names.
Diffstat (limited to 'auth')
-rw-r--r--auth/token.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/auth/token.go b/auth/token.go
index 034be2a86..e31c8ca42 100644
--- a/auth/token.go
+++ b/auth/token.go
@@ -10,7 +10,7 @@ import (
"strings"
"time"
- grpc_auth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
+ grpcmwauth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
"google.golang.org/grpc/codes"
@@ -80,7 +80,7 @@ func CheckToken(ctx context.Context, secret string, targetTime time.Time) error
// ExtractAuthInfo returns an `AuthInfo` with the data extracted from `ctx`
func ExtractAuthInfo(ctx context.Context) (*AuthInfo, error) {
- token, err := grpc_auth.AuthFromMD(ctx, "bearer")
+ token, err := grpcmwauth.AuthFromMD(ctx, "bearer")
if err != nil {
return nil, err