()
| 11 | let instance: WorkerUtils | undefined; |
| 12 | class WorkerSingleton { |
| 13 | private static async createInstance() { |
| 14 | await downloadCert(); |
| 15 | return makeWorkerUtils({ |
| 16 | connectionString: getDatabaseUrl({ |
| 17 | dbUrl: process.env.DATABASE_URL, |
| 18 | cert: process.env.RDS_CERTIFICATE, |
| 19 | }), |
| 20 | }); |
| 21 | } |
| 22 | static async getInstance() { |
| 23 | if (!instance) { |
| 24 | instance = await this.createInstance(); |
no test coverage detected