Skip to content

Commit

Permalink
addded a timeout for the telemetery request
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy Razon committed Nov 5, 2023
1 parent 9ea875e commit 24cac97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/telemetry/emitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const telemetryEmitter = async ({ dataDir, version, debug }: {
method: 'POST',
redirect: 'follow',
body,
timeout: 1500,
}).catch(err => {
if (debug) {
process.stderr.write(`Error sending telemetry: ${inspect(err)}${os.EOL}`)
Expand Down

0 comments on commit 24cac97

Please sign in to comment.