()
| 137 | |
| 138 | // ---- Hub probe ---- |
| 139 | function createHubProbeInfo() { |
| 140 | return { |
| 141 | status: 'probing', |
| 142 | latencyMs: null, |
| 143 | lastProbeAt: 0, |
| 144 | lastSuccessAt: 0, |
| 145 | consecutiveFailures: 0, |
| 146 | probeToken: 0, |
| 147 | }; |
| 148 | } |
| 149 | |
| 150 | function getHubProbeInfo(serverId) { |
| 151 | if (!hubStatus.has(serverId)) hubStatus.set(serverId, createHubProbeInfo()); |
no outgoing calls
no test coverage detected