diff options
author | Sami Hiltunen <shiltunen@gitlab.com> | 2021-09-09 17:54:17 +0300 |
---|---|---|
committer | Sami Hiltunen <shiltunen@gitlab.com> | 2021-09-13 17:09:48 +0300 |
commit | 7b01a3b23da282dd54e1fb57cd87883c865e6eed (patch) | |
tree | 46bb10b04a3d1d7af836b1784c7f51c1e6380fce /proto | |
parent | b1a3ae70efd6b3c45d596060b6ef9b11fa723249 (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.go | 1 |
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", |