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:
authorjramsay <jcai@gitlab.com>2019-12-03 20:22:15 +0300
committerJohn Cai <jcai@gitlab.com>2019-12-04 17:37:51 +0300
commitcecb28de16b63e4b807403e429de687adaa2e3b4 (patch)
tree0aa40236ccf45e13f1c20fe7c43bb3c380a34a49 /internal/praefect/config
parent07c5914b25d90c69407358d63c2192b3eb0eabab (diff)
Move bootstrap env vars into bootstrap constructor
Both Gitaly and Praefect use the bootstrap package and need to play well with gitaly-wrapper. This changes praefect to use the same env vars as gitaly. It also moves the env var retrieval inside the bootstrap constructor.
Diffstat (limited to 'internal/praefect/config')
-rw-r--r--internal/praefect/config/config.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/internal/praefect/config/config.go b/internal/praefect/config/config.go
index cdd4b3e81..b074c1f01 100644
--- a/internal/praefect/config/config.go
+++ b/internal/praefect/config/config.go
@@ -13,13 +13,6 @@ import (
"gitlab.com/gitlab-org/gitaly/internal/praefect/models"
)
-const (
- // EnvPidFile is the name of the environment variable containing the pid file path
- EnvPidFile = "PRAEFECT_PID_FILE"
- // EnvUpgradesEnabled is an environment variable that when defined gitaly must enable graceful upgrades on SIGHUP
- EnvUpgradesEnabled = "PRAEFECT_UPGRADES_ENABLED"
-)
-
// Config is a container for everything found in the TOML config file
type Config struct {
ListenAddr string `toml:"listen_addr"`