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

@@ -25,6 +25,13 @@ import { logger, setLogLevel } from '../utils/logger';
import { sleep } from '../utils/utils';
import { RedisClient } from '../utils/redisClient';
import { fromEvent, filter, map } from 'rxjs';
import { setGlobalDispatcher, Agent } from 'undici';
setGlobalDispatcher(
new Agent({
connections: 200,
})
);
require('dotenv').config();
const driftEnv = (process.env.ENV || 'devnet') as DriftEnv;