Skip to content

Commit 24f7684

Browse files
committed
allow for deactivating discoveries
1 parent 4d8cd99 commit 24f7684

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internals/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func Load() {
1919
discoveryIntervalStr := os.Getenv("DISCOVERY_INTERVAL")
2020

2121
if discoveryIntervalStr != "" {
22-
discoveryInterval, err := strconv.Itoa(discoveryIntervalStr)
22+
discoveryInterval, err := strconv.Atoi(discoveryIntervalStr)
2323
if err != nil {
2424
ENV.DISCOVERY_INTERVAL = discoveryInterval
2525
}
@@ -28,7 +28,7 @@ func Load() {
2828
aliveIntervalStr := os.Getenv("ALIVE_INTERVAL")
2929

3030
if aliveIntervalStr != "" {
31-
aliveInterval, err := strconv.Itoa(aliveIntervalStr)
31+
aliveInterval, err := strconv.Atoi(aliveIntervalStr)
3232
if err != nil {
3333
ENV.ALIVE_INTERVAL = aliveInterval
3434
}

0 commit comments

Comments
 (0)