Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion fdbkubernetesmonitor/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ func startMonitor(ctx context.Context, logger logr.Logger, configFile string, cu
logger.Error(err, "could not start HTTPS server")
os.Exit(1)
}
return
}
err := http.ListenAndServe(promConfig.listenAddr, mux)
if err != nil {
Expand Down Expand Up @@ -527,7 +528,7 @@ func addWatcher(fileName string, watcher *fsnotify.Watcher) error {
var err error
for retryCnt < maxRetryCnt {
err = watcher.Add(fileName)
if err != nil {
if err == nil {
return nil
}

Expand Down