adds a long TTL to quote requestor client

This commit is contained in:
Daniel Pyrathon 2020-08-12 07:38:57 -07:00
parent 3df39d8cfe
commit f30dfcc572

View File

@ -16,7 +16,7 @@ import { ONE_SECOND_MS } from './market_operation_utils/constants';
const KEEP_ALIVE_TTL = 5 * 60 * ONE_SECOND_MS; const KEEP_ALIVE_TTL = 5 * 60 * ONE_SECOND_MS;
export const quoteRequestorHttpClient: AxiosInstance = Axios.create({ export const quoteRequestorHttpClient: AxiosInstance = Axios.create({
httpAgent: new HttpAgent({ keepAlive: true, timeout: KEEP_ALIVE_TTL}), httpAgent: new HttpAgent({ keepAlive: true, timeout: KEEP_ALIVE_TTL }),
httpsAgent: new HttpsAgent({ keepAlive: true, timeout: KEEP_ALIVE_TTL }), httpsAgent: new HttpsAgent({ keepAlive: true, timeout: KEEP_ALIVE_TTL }),
}); });