Reduce retries on failure.

This commit is contained in:
Jim Myers 2020-02-17 20:02:32 -05:00
parent 1fdb9926e0
commit 2fb5d3da4e
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ export default class API {
url: string,
params = {},
retryCount = 0,
retryMax = 2
retryMax = 1
): Promise<any> {
let res;
try {

View File

@ -99,7 +99,7 @@ class Spectrum extends Component<Props, State> {
if (!success || !data) {
setTimeout(() => {
return this._getData();
}, 45000);
}, 120000);
return success;
}