From e5efe2df21fcfc3fc7582c59daadf898344b37ce Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Sat, 5 Aug 2023 10:57:26 -0400 Subject: [PATCH] stagger didn't work --- src/main.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.ts b/src/main.ts index 4e13a89..e30bd32 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,7 +3,6 @@ import { NestFactory } from '@nestjs/core'; import { FastifyAdapter, NestFastifyApplication } from '@nestjs/platform-fastify'; import * as bitcoinjs from 'bitcoinjs-lib'; import { useContainer } from 'class-validator'; -import { setTimeout } from 'timers/promises'; import * as ecc from 'tiny-secp256k1'; import { AppModule } from './app.module'; @@ -23,9 +22,9 @@ async function bootstrap() { //const app = await NestFactory.create(AppModule, new FastifyAdapter({ https: httpsOptions })); // stagger startup - if (process.env.NODE_APP_INSTANCE != null) { - await setTimeout(parseInt(process.env.NODE_APP_INSTANCE) * 5000); - } + // if (process.env.NODE_APP_INSTANCE != null) { + // await setTimeout(parseInt(process.env.NODE_APP_INSTANCE) * 5000); + // } const app = await NestFactory.create(AppModule, new FastifyAdapter());