no lookup env

This commit is contained in:
bel
2023-03-25 10:20:05 -06:00
parent 2cae3c6d28
commit 2113252e2d
2 changed files with 2 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ func Main(ctx context.Context) error {
defer reader.Close()
interval := time.Millisecond * 50
if intervalS, ok := os.LookupEnv("MAIN_INTERVAL_DURATION"); !ok {
if intervalS := os.Getenv("MAIN_INTERVAL_DURATION"); intervalS != "" {
} else if v, err := time.ParseDuration(intervalS); err != nil {
panic(err)
} else {