Skip to content

Commit 63c9cfb

Browse files
authored
fix(gatsby-source-filesystem): Removes erroneously added retries option (#24899)
Co-authored-by: Louis Weber <[email protected]>
1 parent d61d08f commit 63c9cfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/gatsby-source-filesystem/src/create-remote-file-node.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ let totalJobs = 0
5858
const STALL_RETRY_LIMIT = 3
5959
const STALL_TIMEOUT = 30000
6060

61-
const CONNECTION_RETRY_LIMIT = 5
6261
const CONNECTION_TIMEOUT = 30000
6362

6463
/********************
@@ -152,8 +151,9 @@ const requestRemoteNode = (url, headers, tmpFilename, httpOpts, attempt = 1) =>
152151
}
153152
const responseStream = got.stream(url, {
154153
headers,
155-
timeout: CONNECTION_TIMEOUT,
156-
retries: CONNECTION_RETRY_LIMIT,
154+
timeout: {
155+
send: CONNECTION_TIMEOUT, // https://github.com/sindresorhus/got#timeout
156+
},
157157
...httpOpts,
158158
})
159159
const fsWriteStream = fs.createWriteStream(tmpFilename)

0 commit comments

Comments
 (0)