(reason: UserStoreFailureReason)
| 62 | /** Reasons a retry can plausibly clear: the query never reached a healthy |
| 63 | * server. A `query` failure is deterministic and must not be retried. */ |
| 64 | export const isTransientUserStoreReason = (reason: UserStoreFailureReason): boolean => |
| 65 | reason === "connect_timeout" || reason === "connection_closed"; |
| 66 | |
| 67 | // postgres.js tags its connection failures with a string `code` |
| 68 | // (`CONNECT_TIMEOUT`, `CONNECTION_CLOSED`, …) and its query failures with the |
no outgoing calls
no test coverage detected