mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-09 16:00:59 +00:00
initDockerWithRetry and initKubernetesWithRetry were the same exponential backoff loop (5s doubling to a 5m cap, cancel-aware wait, structured retry logging) duplicated per module; dupl flagged the pair. Extract initModuleWithRetry[T] and keep the two as thin wrappers so the test-overridable newDockerAgent/newKubeAgent vars and call sites stay unchanged. Per-module log strings are preserved verbatim. Existing cmd/pulse-agent retry tests (success, cancel-before-connect, cancel-during-wait, both modules) pass unchanged. |
||
|---|---|---|
| .. | ||
| agent-probe | ||
| eval | ||
| hashpw | ||
| pulse | ||
| pulse-agent | ||
| pulse-control-plane | ||
| pulse-mcp | ||