Skip to content

Commit

Permalink
fix: async dns processing
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15stevens committed Aug 20, 2024
1 parent 2387e85 commit 6615907
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/validator.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 6615907

Please sign in to comment.