diff --git a/lib/validator.ts b/lib/validator.ts index dc5b2e7..614683d 100644 --- a/lib/validator.ts +++ b/lib/validator.ts @@ -1,6 +1,10 @@ import { Contract } from "./contract"; import { ValidationResultWithContext } from "./formatter"; +// this helps to deal with asynchronous dns processing. +// see: https://stackoverflow.com/questions/24320578/node-js-get-request-etimedout-esockettimedout +process.env.UV_THREADPOOL_SIZE = '64'; + /** * Validates all of the contracts. * @param contracts The collection of contracts to validate.