remove sleep function

This commit is contained in:
Viet Huynh
2023-11-02 02:58:24 +07:00
parent 4f97b35b74
commit cdcce5a939
2 changed files with 0 additions and 10 deletions
-3
View File
@@ -1,6 +1,5 @@
import { LIST_ITEM_SIZE } from "./constants.js";
import { requestGateway } from "./helpers.js";
import { sleep } from "./utils.js";
/**
* Gets Zero Trust lists.
@@ -47,7 +46,6 @@ export const createZeroTrustListsOneByOne = async (items) => {
try {
await createZeroTrustList(listName, chunk);
await sleep();
totalListNumber--;
listNumber++;
console.log(`Created "${listName}" list - ${totalListNumber} left`);
@@ -104,7 +102,6 @@ export const deleteZeroTrustListsOneByOne = async (lists) => {
for (const { id, name } of lists) {
try {
await deleteZeroTrustList(id);
await sleep();
totalListNumber--;
console.log(`Deleted ${name} list - ${totalListNumber} left`);
} catch (err) {