Merge branch 'master' into jack/redis-migration

This commit is contained in:
Jack Waller
2024-05-23 14:24:14 +10:00
7 changed files with 64 additions and 11 deletions

View File

@@ -25,6 +25,13 @@ import { RedisClient, RedisClientPrefix } from '@drift/common';
import { logger, setLogLevel } from '../utils/logger';
import { sleep } from '../utils/utils';
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;