Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
strahe committed Mar 5, 2025
1 parent 338f6d7 commit 3040b9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/curio/rpc/rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,10 @@ func prometheusServiceDiscovery(ctx context.Context, deps *deps.Deps) http.Handl
harmony_machine_details md ON m.id = md.machine_id;`)
if err != nil {
log.Errorf("failed to fetch hosts: %s", err)
resp.Write([]byte("[]"))
_, err = resp.Write([]byte("[]"))
if err != nil {
log.Errorf("failed to write response: %s", err)
}
} else {
var services []service
for _, h := range hosts {
Expand Down

0 comments on commit 3040b9e

Please sign in to comment.