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/proto
diff options
context:
space:
mode:
authorSami Hiltunen <shiltunen@gitlab.com>2021-09-09 17:54:17 +0300
committerSami Hiltunen <shiltunen@gitlab.com>2021-09-13 17:09:48 +0300
commit7b01a3b23da282dd54e1fb57cd87883c865e6eed (patch)
tree46bb10b04a3d1d7af836b1784c7f51c1e6380fce /proto
parentb1a3ae70efd6b3c45d596060b6ef9b11fa723249 (diff)
Register RepositoryExists as a handler instead of interceptor
Praefect intercepts RepositoryExists calls to check whether a repository should exist from the database rather than relaying to a Gitaly node. Currently this is handled by a special interceptor that only handles RepositoryExists calls. There's a better way by registering a handler directly for the method. This way the interceptor doesn't end up in the call chain of every RPC and it's easier to add more methods to intercept. This commit moves the handling from an interceptor to a registered method.
Diffstat (limited to 'proto')
-rw-r--r--proto/go/gitalypb/protolist.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto/go/gitalypb/protolist.go b/proto/go/gitalypb/protolist.go
index a15916f70..afb0510ae 100644
--- a/proto/go/gitalypb/protolist.go
+++ b/proto/go/gitalypb/protolist.go
@@ -9,6 +9,7 @@ var GitalyProtos = []string{
"commit.proto",
"conflicts.proto",
"diff.proto",
+ "errors.proto",
"hook.proto",
"internal.proto",
"lint.proto",