Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ func waitForReady(serverURL string, timeout time.Duration) error {
for time.Now().Before(deadline) {
resp, err := httpClient.Get(url)
if err == nil {
resp.Body.Close()
if closeErr := resp.Body.Close(); closeErr != nil {
// G104: error intentionally ignored in health-check polling loop
}
if resp.StatusCode == http.StatusOK {
return nil
}
Expand Down
4 changes: 3 additions & 1 deletion pkg/watcher/watchManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ func (wm *WatchManager) Reload() error {
for file := range wm.watchEntries {

if _, exists := newFiles[file]; !exists {
wm.fileWatcher.Remove(file)
if err := wm.fileWatcher.Remove(file); err != nil {
log.Printf("[WARN] Cannot remove watcher for file %s: %v", file, err)
}
}
}

Expand Down
Loading