diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-09-20 15:15:49 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-09-20 15:16:32 +0300 |
commit | 59b691988d8719235b7032c59e91c5bf2637262d (patch) | |
tree | 58dc891dfa2e72b09e7c447249b04348dbdfa47c /cmd | |
parent | d6c4f13dbff2729dffe834641d7e35cd6bbac5dc (diff) |
helper: Move metatada-helpers into the metadata package
While the helpers `IncomingToOutgoing()` and `OutgoingToIncoming()` both
fall into the metadata categories, they're still part of the generic
"helper" package. Move them over into the "metadata" package to make
them easier to find.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gitaly-hooks/hooks.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gitaly-hooks/hooks.go b/cmd/gitaly-hooks/hooks.go index d65406cd6..a84ba637f 100644 --- a/cmd/gitaly-hooks/hooks.go +++ b/cmd/gitaly-hooks/hooks.go @@ -19,9 +19,9 @@ import ( "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/config/prometheus" "gitlab.com/gitlab-org/gitaly/v14/internal/gitaly/hook" "gitlab.com/gitlab-org/gitaly/v14/internal/gitlab" - "gitlab.com/gitlab-org/gitaly/v14/internal/helper" "gitlab.com/gitlab-org/gitaly/v14/internal/helper/env" gitalylog "gitlab.com/gitlab-org/gitaly/v14/internal/log" + "gitlab.com/gitlab-org/gitaly/v14/internal/metadata" "gitlab.com/gitlab-org/gitaly/v14/internal/metadata/featureflag" "gitlab.com/gitlab-org/gitaly/v14/internal/stream" "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb" @@ -344,7 +344,7 @@ func packObjectsHook(ctx context.Context, payload git.HooksPayload, hookClient g var rpc string var err error - if featureflag.PackObjectsHookWithSidechannel.IsEnabled(helper.OutgoingToIncoming(ctx)) { + if featureflag.PackObjectsHookWithSidechannel.IsEnabled(metadata.OutgoingToIncoming(ctx)) { rpc = "PackObjectsHookWithSidechannel" err = handlePackObjectsWithSidechannel(ctx, hookClient, payload.Repo, fixedArgs) } else { |