diff options
author | Toon Claes <toon@gitlab.com> | 2022-09-09 12:20:33 +0300 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2022-10-03 16:26:16 +0300 |
commit | a509dad104653e80d9b39b7e69b57d8e6d61e4fe (patch) | |
tree | 211e00e51fc0e6d081be3b3961c28b7bfa32e63a /cmd | |
parent | 19c093150080262b0ba794317083c476e3c14976 (diff) |
linguist: Remove linguist instantiation dependency
Now linguist no longer loads colors when it's created, there's no more
need to create an instance when Gitaly is started. So remove linguist as
a dependency.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/gitaly/main.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cmd/gitaly/main.go b/cmd/gitaly/main.go index e3f359ffa..805ac336a 100644 --- a/cmd/gitaly/main.go +++ b/cmd/gitaly/main.go @@ -29,7 +29,6 @@ import ( "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/config" "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/config/sentry" "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/hook" - "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/linguist" "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/maintenance" "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/rubyserver" "gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/server" @@ -287,11 +286,6 @@ func run(cfg config.Cfg) error { ) defer gitalyServerFactory.Stop() - ling, err := linguist.New(cfg) - if err != nil { - return fmt.Errorf("linguist instance creation: %w", err) - } - git2goExecutor := git2go.NewExecutor(cfg, gitCmdFactory, locator) updaterWithHooks := updateref.NewUpdaterWithHooks(cfg, locator, hookManager, gitCmdFactory, catfileCache) @@ -337,7 +331,6 @@ func run(cfg config.Cfg) error { StorageLocator: locator, ClientPool: conns, GitCmdFactory: gitCmdFactory, - Linguist: ling, CatfileCache: catfileCache, DiskCache: diskCache, PackObjectsCache: streamCache, |