We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 036c615 commit 3b567a9Copy full SHA for 3b567a9
src/index.js
@@ -132,7 +132,7 @@ class Anvil {
132
data,
133
errors,
134
} = await this._wrapRequest(
135
- async () => this._request(url, options),
+ () => this._request(url, options),
136
clientOptions,
137
)
138
@@ -215,9 +215,9 @@ class Anvil {
215
return fetch(url, opts)
216
}
217
218
- async _wrapRequest (preparedRequest, clientOptions = {}) {
+ async _wrapRequest (retryableRequestFn, clientOptions = {}) {
219
return this._throttle(async (retry) => {
220
- const response = await preparedRequest()
+ const response = await retryableRequestFn()
221
const statusCode = response.status
222
223
if (statusCode >= 300) {
0 commit comments