don't fail when a .env file is not present

still try to read it but let people use other ways to set up their environment variables.
This commit is contained in:
fiatjaf_
2024-09-07 07:10:01 -03:00
committed by GitHub
parent 060fd68c85
commit e38dcc71ba

View File

@@ -119,10 +119,7 @@ func main() {
}
func LoadConfig() Config {
err := godotenv.Load(".env")
if err != nil {
log.Fatalf("Error loading .env file")
}
godotenv.Load(".env")
config := Config{
RelayName: getEnv("RELAY_NAME"),