fix: send last healthcheck in backoff
This commit is contained in:
parent
282e54f831
commit
0e410bf241
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue