🔥 Remove envConfig.go

This commit is contained in:
M. Mert Yildiran
2022-12-27 09:29:17 +03:00
parent 33f23ea849
commit f6bde5fe76
3 changed files with 5 additions and 32 deletions

View File

@@ -1,25 +0,0 @@
package config
import (
"os"
"strconv"
)
const (
HubRetries = "HUB_SERVER_RETRIES"
HubTimeoutSec = "HUB_SERVER_TIMEOUT_SEC"
)
func GetIntEnvConfig(key string, defaultValue int) int {
value := os.Getenv(key)
if value == "" {
return defaultValue
}
intValue, err := strconv.Atoi(value)
if err != nil {
return defaultValue
}
return intValue
}