diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-02-16 10:00:52 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-02-16 10:00:52 +0300 |
commit | fd5d730b0d83bf836ffd8f942542ee78f4b00a2b (patch) | |
tree | d979470df1a94ba0005a0b1a248d7e9de4268864 /internal/gitaly/service/hook/testhelper_test.go | |
parent | ceeed993e3c363dbc372a0ae0cff5ec98e6effe4 (diff) |
housekeeping: Create new manager to host stateful logic
We're eventually going to move the housekeeping package to keep state
such that we can improve the heuristics used for optimizing repos. This
will allow us to e.g. take into account the last time a repository was
optimized to not optimize repositories too often, or avoid packing the
same repository twice concurrently.
Implment a new housekeeping manager structure that will be the home of
this functionality and inject it as required. This manager isn't yet
doing anything.
Diffstat (limited to 'internal/gitaly/service/hook/testhelper_test.go')
-rw-r--r-- | internal/gitaly/service/hook/testhelper_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/gitaly/service/hook/testhelper_test.go b/internal/gitaly/service/hook/testhelper_test.go index db674f616..0c61df801 100644 --- a/internal/gitaly/service/hook/testhelper_test.go +++ b/internal/gitaly/service/hook/testhelper_test.go @@ -76,6 +76,7 @@ func runHooksServer(t testing.TB, cfg config.Cfg, opts []serverOption, serverOpt deps.GetCatfileCache(), deps.GetConnsPool(), deps.GetGit2goExecutor(), + deps.GetHousekeepingManager(), )) }, serverOpts...) } |