Skip to content

Commit

Permalink
Fix updater exiting early (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
bitshape authored Mar 27, 2022
1 parent e518c8f commit 3215ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runner/config/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func UpdateLocal(destinationPath string, configPaths []string, backupConfig []by
if rawConfig := FetchRawConfig(configPaths, lastKnownConfig); !bytes.Equal(lastKnownConfig.Body, rawConfig.Body) {
if err := writeConfig(rawConfig.Body, destinationPath); err != nil {
log.Printf("Error writing config: %v", err)
}

return
return
}
}

time.Sleep(1 * time.Minute)
Expand Down

0 comments on commit 3215ab3

Please sign in to comment.