mirror of
https://github.com/FlipsideCrypto/flipside-js.git
synced 2026-02-06 10:48:11 +00:00
Reduce retries on failure.
This commit is contained in:
parent
1fdb9926e0
commit
2fb5d3da4e
@ -17,7 +17,7 @@ export default class API {
|
||||
url: string,
|
||||
params = {},
|
||||
retryCount = 0,
|
||||
retryMax = 2
|
||||
retryMax = 1
|
||||
): Promise<any> {
|
||||
let res;
|
||||
try {
|
||||
|
||||
@ -99,7 +99,7 @@ class Spectrum extends Component<Props, State> {
|
||||
if (!success || !data) {
|
||||
setTimeout(() => {
|
||||
return this._getData();
|
||||
}, 45000);
|
||||
}, 120000);
|
||||
return success;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user