MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / createInstance

Method createInstance

apps/web/queue/jobs.ts:13–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11let instance: WorkerUtils | undefined;
12class 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();

Callers 1

getInstanceMethod · 0.95

Calls 2

downloadCertFunction · 0.90
getDatabaseUrlFunction · 0.90

Tested by

no test coverage detected