Skip to content

Commit

Permalink
eslint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-salazar committed Dec 15, 2022
1 parent 81fa595 commit b75b6aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/create-sitemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const BASE_URL = `${API_URL}/entry/{DB}/?page_size=200`;
const DATABASES = ['interpro', 'pfam'];

const ONE_SEC = 1000;
const TEN_SEC = 10000;
const ONE_MIN = 60000;

const status = {
Expand Down Expand Up @@ -64,7 +65,7 @@ const main = async function* (startURL) {
if (next) await sleep(ONE_SEC);
} catch (Exception) {
process.stdout.write('there was a fetch error, tryin again in 10 SEC');
await sleep(ONE_SEC * 10);
await sleep(TEN_SEC);
}
}
};
Expand Down

0 comments on commit b75b6aa

Please sign in to comment.