1
0
Fork 0

fix: send last healthcheck in backoff

This commit is contained in:
Arthur K. 2026-01-19 18:43:39 +03:00
parent 282e54f831
commit 0e410bf241
Signed by: wzray
GPG key ID: B97F30FDC4636357

View file

@ -39,7 +39,7 @@ func (o *observer) pollNodes(ctx context.Context, onLeave func(types.Node) error
delay := time.Duration(o.backoff) delay := time.Duration(o.backoff)
alive := false alive := false
for i := o.backoffCount; i > 0; i-- { for i := o.backoffCount - 1; i >= 0; i-- {
_, err := client.Get[any](n.Endpoint, types.PathNodeHealthcheck) _, err := client.Get[any](n.Endpoint, types.PathNodeHealthcheck)
if err == nil { if err == nil {