add prettier config
This commit is contained in:
@ -78,7 +78,7 @@ export default (options = {}) => {
|
||||
fetchFunc,
|
||||
url,
|
||||
options,
|
||||
priority = PRIORITY.FG_LOW,
|
||||
priority = PRIORITY.FG_LOW
|
||||
) => {
|
||||
for (let i = 0; i <= retries; i++) {
|
||||
try {
|
||||
@ -140,11 +140,11 @@ export default (options = {}) => {
|
||||
|
||||
const queuedFetchJson = async (url, options, priority = PRIORITY.FG_LOW) =>
|
||||
resolvePromiseOrWaitForPending(url, () =>
|
||||
retriedFetch(fetchJson, url, options, priority),
|
||||
retriedFetch(fetchJson, url, options, priority)
|
||||
);
|
||||
const queuedFetchHtml = async (url, options, priority = PRIORITY.FG_LOW) =>
|
||||
resolvePromiseOrWaitForPending(url, () =>
|
||||
retriedFetch(fetchHtml, url, options, priority),
|
||||
retriedFetch(fetchHtml, url, options, priority)
|
||||
);
|
||||
|
||||
const getRateLimit = () => currentRateLimit;
|
||||
|
Reference in New Issue
Block a user