summaryrefslogtreecommitdiff
path: root/internal/container
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2022-05-12 17:06:37 +0200
committerValery Piashchynski <[email protected]>2022-05-12 17:06:37 +0200
commit53bbf3e29a25a4751a7d31ce4b31f4d724a244c4 (patch)
tree0858d722f11f8e871749203cbf24f536eb4c462e /internal/container
parent0b823ea7271645bb214c8a05ee02cb3d4b994872 (diff)
deps: update dependencies
Diffstat (limited to 'internal/container')
-rw-r--r--internal/container/config.go4
-rw-r--r--internal/container/container.go1
2 files changed, 0 insertions, 5 deletions
diff --git a/internal/container/config.go b/internal/container/config.go
index 71deafc2..fb5b028e 100644
--- a/internal/container/config.go
+++ b/internal/container/config.go
@@ -11,7 +11,6 @@ import (
type Config struct {
GracePeriod time.Duration
PrintGraph bool
- RetryOnFail bool // TODO check for races, disabled at this moment
LogLevel endure.Level
}
@@ -34,7 +33,6 @@ func NewConfig(cfgFile string) (*Config, error) {
return &Config{ // return config with defaults
GracePeriod: defaultGracePeriod,
PrintGraph: false,
- RetryOnFail: false,
LogLevel: endure.ErrorLevel,
}, nil
}
@@ -42,7 +40,6 @@ func NewConfig(cfgFile string) (*Config, error) {
rrCfgEndure := struct {
GracePeriod time.Duration `mapstructure:"grace_period"`
PrintGraph bool `mapstructure:"print_graph"`
- RetryOnFail bool `mapstructure:"retry_on_fail"`
LogLevel string `mapstructure:"log_level"`
}{}
@@ -67,7 +64,6 @@ func NewConfig(cfgFile string) (*Config, error) {
return &Config{
GracePeriod: rrCfgEndure.GracePeriod,
PrintGraph: rrCfgEndure.PrintGraph,
- RetryOnFail: rrCfgEndure.RetryOnFail,
LogLevel: logLevel,
}, nil
}
diff --git a/internal/container/container.go b/internal/container/container.go
index 25ba6326..610fdbf9 100644
--- a/internal/container/container.go
+++ b/internal/container/container.go
@@ -9,7 +9,6 @@ import (
func NewContainer(cfg Config) (*endure.Endure, error) {
endureOptions := []endure.Options{
endure.SetLogLevel(cfg.LogLevel),
- endure.RetryOnFail(cfg.RetryOnFail),
endure.GracefulShutdownTimeout(cfg.GracePeriod),
}