Skip to content

Commit ef7f9d5

Browse files
committed
"Remove unused CONNECTION_MODE configuration and related code."
1 parent cb66b62 commit ef7f9d5

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

correlation/utils/configuration.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,15 @@ type YamlConfig struct {
1919

2020
type ConnMode string
2121

22-
const (
23-
ConnModeOffline ConnMode = "OFFLINE"
24-
ConnModeOnline ConnMode = "ONLINE"
25-
)
26-
27-
type EnvVarConfig struct {
28-
ConnectionMode ConnMode `env:"CONNECTION_MODE"`
29-
}
30-
3122
type Config struct {
3223
YamlConfig
33-
EnvVarConfig
3424
}
3525

3626
var oneConfigRead sync.Once
3727
var cnf Config
3828

3929
func readConfig() {
4030
ReadYaml("config.yml", &cnf.YamlConfig)
41-
ReadEnvVars(&cnf.EnvVarConfig)
4231
}
4332

4433
func GetConfig() Config {

installer/types/compose.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ func (c *Compose) Populate(conf *Config, stack *StackConfig) *Compose {
443443
"ELASTICSEARCH_HOST=node1",
444444
"ELASTICSEARCH_PORT=9200",
445445
"ERROR_LEVEL=info",
446-
"CONNECTION_MODE=ONLINE",
447446
},
448447
Logging: &dLogging,
449448
Deploy: &Deploy{

0 commit comments

Comments
 (0)