We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 915c2fa commit 164b218Copy full SHA for 164b218
checker/patroni_leader_checker.go
@@ -34,6 +34,7 @@ func (c *PatroniLeaderChecker) GetChangeNotificationStream(ctx context.Context,
34
c.Logger.Sugar().Error("patroni REST API error:", err)
35
continue
36
}
37
+ r.Body.Close() //throw away the body
38
out <- strconv.Itoa(r.StatusCode) == c.TriggerValue
39
40
0 commit comments