revert: remove retry to external API requests
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { getSettings } from '@server/lib/settings';
|
||||
import rateLimit from '@server/utils/rateLimit';
|
||||
import retry from '@server/utils/retry';
|
||||
import type NodeCache from 'node-cache';
|
||||
|
||||
// 5 minute default TTL (in seconds)
|
||||
@@ -39,11 +37,6 @@ class ExternalAPI {
|
||||
this.fetch = fetch;
|
||||
}
|
||||
|
||||
const settings = getSettings();
|
||||
if (settings.main.retryCount) {
|
||||
this.fetch = retry(this.fetch, settings.main.retryCount);
|
||||
}
|
||||
|
||||
this.baseUrl = baseUrl;
|
||||
this.params = params;
|
||||
this.defaultHeaders = {
|
||||
|
||||
Reference in New Issue
Block a user