socket fix

This commit is contained in:
Nour Alharithi
2024-05-16 16:43:06 -07:00
parent c622775910
commit e1336001ce
6 changed files with 34 additions and 0 deletions

View File

@@ -16,6 +16,13 @@ import { sleep } from '../utils/utils';
import express from 'express';
// import { handleHealthCheck } from '../core/metrics';
import { RedisClient } from '../utils/redisClient';
import { setGlobalDispatcher, Agent } from 'undici';
setGlobalDispatcher(
new Agent({
connections: 200,
})
);
require('dotenv').config();
const stateCommitment: Commitment = 'confirmed';