Skip to content

Commit

Permalink
fix(gatsby-source-filesystem): Removes erroneously added retries opti…
Browse files Browse the repository at this point in the history
…on (#24899)

Co-authored-by: Louis Weber <lweber@riversagency.com>
  • Loading branch information
ThyNameIsMud and Louis Weber committed Jul 16, 2020
1 parent d61d08f commit 63c9cfb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ let totalJobs = 0
const STALL_RETRY_LIMIT = 3
const STALL_TIMEOUT = 30000

const CONNECTION_RETRY_LIMIT = 5
const CONNECTION_TIMEOUT = 30000

/********************
Expand Down Expand Up @@ -152,8 +151,9 @@ const requestRemoteNode = (url, headers, tmpFilename, httpOpts, attempt = 1) =>
}
const responseStream = got.stream(url, {
headers,
timeout: CONNECTION_TIMEOUT,
retries: CONNECTION_RETRY_LIMIT,
timeout: {
send: CONNECTION_TIMEOUT, // https://github.com/sindresorhus/got#timeout
},
...httpOpts,
})
const fsWriteStream = fs.createWriteStream(tmpFilename)
Expand Down

0 comments on commit 63c9cfb

Please sign in to comment.