Skip to content

Commit 17af673

Browse files
committed
rm timeout
1 parent d2c36c9 commit 17af673

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

packages/playground/src/components/node_selector/TfAutoNodeSelector.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,12 +307,7 @@ export default {
307307
});
308308
if (state.gracePeriod) {
309309
const err = `You can't deploy on node ${node.nodeId}, its rent contract is in grace period.`;
310-
await new Promise((_, reject) => {
311-
setTimeout(() => {
312-
reject(Error(err));
313-
}, 2000);
314-
});
315-
console.error(err);
310+
throw err;
316311
}
317312
}
318313
} catch (error) {

packages/playground/src/utils/nodeSelector.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,7 @@ export async function validateRentContract(
235235
});
236236
if (contractInfo.state.gracePeriod) {
237237
const err = `You can't deploy on node ${node.nodeId}, its rent contract is in grace period.`;
238-
await new Promise((_, reject) => {
239-
setTimeout(() => {
240-
reject(Error(err));
241-
}, 2000);
242-
});
243-
console.error(err);
238+
throw err;
244239
}
245240
}
246241

0 commit comments

Comments
 (0)