(error: MongoError)
| 36 | export type Stream = Socket | TLSSocket; |
| 37 | |
| 38 | function applyBackpressureLabels(error: MongoError) { |
| 39 | error.addErrorLabel(MongoErrorLabel.SystemOverloadedError); |
| 40 | error.addErrorLabel(MongoErrorLabel.RetryableError); |
| 41 | } |
| 42 | |
| 43 | export async function connect(options: ConnectionOptions): Promise<Connection> { |
| 44 | let connection: Connection | null = null; |
no test coverage detected