(
ref: ConnectionRef,
result: HealthCheckResult,
)
| 4573 | * landing even between the read and the UPDATE wins and the probe |
| 4574 | * verdict is a silent no-op. Best-effort, like every verdict write. */ |
| 4575 | const persistProbeHealthResult = ( |
| 4576 | ref: ConnectionRef, |
| 4577 | result: HealthCheckResult, |
| 4578 | ): Effect.Effect<void> => |
| 4579 | findConnectionRow(ref).pipe( |
| 4580 | Effect.flatMap((fresh) => |
| 4581 | fresh === null || oauthReauthRequiredFromProviderState(fresh.provider_state) !== null |
| 4582 | ? Effect.void |
| 4583 | : persistHealthResult(ref, fresh, result), |
| 4584 | ), |
| 4585 | Effect.ignore, |
| 4586 | ); |
| 4587 | |
| 4588 | const connectionCheckHealth = ( |
| 4589 | ref: ConnectionRef, |
no test coverage detected