This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { MongoClient } = require('mongodb'); | |
| // update according to your setup | |
| const url = 'mongodb://localhost:27022'; | |
| const dbName = 'test'; | |
| const collectionName = 'test-timeouts'; | |
| const fillData = async () => { | |
| const client = new MongoClient(url); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as http from 'http'; | |
| import * as https from 'https'; | |
| import got, { Got, ExtendOptions, Headers, CancelableRequest, Response } from 'got'; | |
| import CacheableLookup from 'cacheable-lookup'; | |
| import { decodeData, TypeOf, TSchema } from '../decoder'; | |
| export const DefaultHttpClientOptions = { | |
| keepAlive: true, | |
| maxSockets: 10, |