diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-08 15:12:29 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-08 15:12:29 +0000 |
commit | f8c7f38d02ebf964cbf40d9445f0f9f843710701 (patch) | |
tree | 755d5c384a0f64ffc8aad26f4628844697499522 /workhorse/main.go | |
parent | 8fea353b907d1fd571f5450a757cafee73cfbfd0 (diff) | |
download | gitlab-ce-f8c7f38d02ebf964cbf40d9445f0f9f843710701.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'workhorse/main.go')
-rw-r--r-- | workhorse/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/workhorse/main.go b/workhorse/main.go index b0f9760b0d5..027575747f4 100644 --- a/workhorse/main.go +++ b/workhorse/main.go @@ -220,7 +220,9 @@ func run(boot bootConfig, cfg config.Config) error { secret.SetPath(boot.secretPath) - keyWatcher := redis.NewKeyWatcher() + keyWatcher := redis.NewKeyWatcher( + os.Getenv("GITLAB_WORKHORSE_REDIS_SUBSCRIBE_MANY") == "1", + ) if cfg.Redis != nil { redis.Configure(cfg.Redis, redis.DefaultDialFunc) go keyWatcher.Process() |