Commit aa5e59d
committed
refactor(onboard): one router readiness predicate for both acceptance paths
Review follow-up. The startup poll and the final health snapshot each
composed the readiness rule at their own call site, which is the shape that
let the two paths carry different definitions of readiness in the first
place. Fold the complete rule -- /health answered 2xx and names at least one
healthy endpoint -- into the existing local predicate, which now takes the
snapshot itself, and have both acceptance paths call it. Retry, timeout, and
diagnostic behavior are unchanged, and production line count is neutral.
Also correct the stale comment on the isRouterHealthy stub in the
zero-healthy-endpoints case: the startup poll no longer calls isRouterHealthy
at all, so the stub's job is to trip a regression back to the old boolean
poll.
Signed-off-by: Udaya Tejas <udayatejas2004@gmail.com>1 parent e64af5a commit aa5e59d
2 files changed
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
| 488 | + | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
508 | | - | |
509 | | - | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
510 | 510 | | |
511 | | - | |
| 511 | + | |
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
749 | 749 | | |
750 | 750 | | |
751 | 751 | | |
752 | | - | |
753 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
| |||
0 commit comments