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
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2023-05-12 14:35:05 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-05-16 11:05:56 +0300
commit1c07f376fd1f9798d59f7d6f3c68a7a5a87904f7 (patch)
treeac3c42ee807fe48ce53f6c9c6ec308ddeb980ab6
parent60cb25ca6964cd13aecc14fbe742051d25e6a227 (diff)
grpcstats: Move package into `internal/grpc/`
We've grown quite a bunch of packages that provide various different functionality in the context of gRPC. But it is not easy to identify them as there is no common hierarchy for gRPC-related functionality. We're thus introducing a new `internal/grpc` package that will host various bits and pieces related to gRPC. Move the `internal/grpcstats` package into this new package.
-rw-r--r--internal/gitaly/server/server.go2
-rw-r--r--internal/grpc/grpcstats/stats.go (renamed from internal/grpcstats/stats.go)0
-rw-r--r--internal/grpc/grpcstats/stats_test.go (renamed from internal/grpcstats/stats_test.go)0
-rw-r--r--internal/grpc/grpcstats/testhelper_test.go (renamed from internal/grpcstats/testhelper_test.go)0
-rw-r--r--internal/log/log_test.go2
5 files changed, 2 insertions, 2 deletions
diff --git a/internal/gitaly/server/server.go b/internal/gitaly/server/server.go
index d9ffa9ae8..6bdf6a734 100644
--- a/internal/gitaly/server/server.go
+++ b/internal/gitaly/server/server.go
@@ -11,6 +11,7 @@ import (
"gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/client"
"gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/server/auth"
"gitlab.com/gitlab-org/gitaly/v16/internal/grpc/backchannel"
+ "gitlab.com/gitlab-org/gitaly/v16/internal/grpc/grpcstats"
"gitlab.com/gitlab-org/gitaly/v16/internal/grpc/listenmux"
"gitlab.com/gitlab-org/gitaly/v16/internal/grpc/middleware/cache"
"gitlab.com/gitlab-org/gitaly/v16/internal/grpc/middleware/commandstatshandler"
@@ -20,7 +21,6 @@ import (
"gitlab.com/gitlab-org/gitaly/v16/internal/grpc/middleware/panichandler"
"gitlab.com/gitlab-org/gitaly/v16/internal/grpc/middleware/sentryhandler"
"gitlab.com/gitlab-org/gitaly/v16/internal/grpc/middleware/statushandler"
- "gitlab.com/gitlab-org/gitaly/v16/internal/grpcstats"
"gitlab.com/gitlab-org/gitaly/v16/internal/helper/fieldextractors"
gitalylog "gitlab.com/gitlab-org/gitaly/v16/internal/log"
"gitlab.com/gitlab-org/gitaly/v16/internal/logsanitizer"
diff --git a/internal/grpcstats/stats.go b/internal/grpc/grpcstats/stats.go
index 89782e538..89782e538 100644
--- a/internal/grpcstats/stats.go
+++ b/internal/grpc/grpcstats/stats.go
diff --git a/internal/grpcstats/stats_test.go b/internal/grpc/grpcstats/stats_test.go
index 84d13930c..84d13930c 100644
--- a/internal/grpcstats/stats_test.go
+++ b/internal/grpc/grpcstats/stats_test.go
diff --git a/internal/grpcstats/testhelper_test.go b/internal/grpc/grpcstats/testhelper_test.go
index f57175b92..f57175b92 100644
--- a/internal/grpcstats/testhelper_test.go
+++ b/internal/grpc/grpcstats/testhelper_test.go
diff --git a/internal/log/log_test.go b/internal/log/log_test.go
index dc927ae15..cd3063490 100644
--- a/internal/log/log_test.go
+++ b/internal/log/log_test.go
@@ -18,7 +18,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"gitlab.com/gitlab-org/gitaly/v16/client"
- "gitlab.com/gitlab-org/gitaly/v16/internal/grpcstats"
+ "gitlab.com/gitlab-org/gitaly/v16/internal/grpc/grpcstats"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/interop/grpc_testing"