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:
authorJohn Cai <jcai@gitlab.com>2022-03-25 16:13:53 +0300
committerJohn Cai <jcai@gitlab.com>2022-04-06 22:27:35 +0300
commitf4cb81c2dcdfaaa67a2752f7451917f6080db652 (patch)
treef3ede5ddc01a33abd1fec48b70cd95321b5b353f /internal/gitaly/service
parent7ce0a1bb170eb89da15a12acf9446f2cb43262a1 (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.go2
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)