Skip to content

Commit

Permalink
[-] fix memory leak in Patroni checker, fixes #285 (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
pashagolub authored Dec 11, 2024
1 parent 915c2fa commit 79e94ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions checker/patroni_leader_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func (c *PatroniLeaderChecker) GetChangeNotificationStream(ctx context.Context,
c.Logger.Sugar().Error("patroni REST API error:", err)
continue
}
r.Body.Close() //throw away the body
out <- strconv.Itoa(r.StatusCode) == c.TriggerValue
}
}
Expand Down

0 comments on commit 79e94ab

Please sign in to comment.