We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2064204 commit ec4ccbbCopy full SHA for ec4ccbb
internal/config/config.go
@@ -81,7 +81,9 @@ func getEnv(key, defaultValue string) string {
81
func getDuration(key string, defaultValue time.Duration) time.Duration {
82
if value := os.Getenv(key); value != "" {
83
if duration, err := time.ParseDuration(value); err == nil {
84
- return duration
+ if duration > 0 {
85
+ return duration
86
+ }
87
}
88
89
return defaultValue
0 commit comments