diff options
author | John Cai <jcai@gitlab.com> | 2022-03-25 16:13:53 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2022-04-06 22:27:35 +0300 |
commit | f4cb81c2dcdfaaa67a2752f7451917f6080db652 (patch) | |
tree | f3ede5ddc01a33abd1fec48b70cd95321b5b353f /internal/gitaly/service | |
parent | 7ce0a1bb170eb89da15a12acf9446f2cb43262a1 (diff) |
server: Allow multiple limit handlers
Now that we are adding a second limit handle, adjust the code to allow
for multiple limit handlers to be passed into a server invocation.
Diffstat (limited to 'internal/gitaly/service')
-rw-r--r-- | internal/gitaly/service/repository/create_fork_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/service/repository/create_fork_test.go b/internal/gitaly/service/repository/create_fork_test.go index b3d0ceaa3..22aa1c0da 100644 --- a/internal/gitaly/service/repository/create_fork_test.go +++ b/internal/gitaly/service/repository/create_fork_test.go @@ -260,7 +260,7 @@ func runSecureServer(t *testing.T, cfg config.Cfg, rubySrv *rubyserver.Server) s locator := config.NewLocator(cfg) cache := cache.New(cfg, locator) limitHandler := limithandler.New(cfg, limithandler.LimitConcurrencyByRepo, limithandler.WithConcurrencyLimiters) - server, err := gserver.New(true, cfg, testhelper.NewDiscardingLogEntry(t), registry, cache, limitHandler) + server, err := gserver.New(true, cfg, testhelper.NewDiscardingLogEntry(t), registry, cache, []*limithandler.LimiterMiddleware{limitHandler}) require.NoError(t, err) listener, addr := testhelper.GetLocalhostListener(t) |