mirror of
https://example.com
synced 2024-11-23 12:16:38 +09:00
✌️
This commit is contained in:
parent
0e1f858dfd
commit
d000b9e7cd
1 changed files with 5 additions and 1 deletions
|
@ -6,6 +6,10 @@ const { default: Note } = require('../built/models/note');
|
|||
const { default: MessagingMessage } = require('../built/models/messaging-message');
|
||||
const { default: User } = require('../built/models/user');
|
||||
|
||||
const args = process.argv.slice(2);
|
||||
|
||||
const skip = parseInt(args[0] || '0', 10);
|
||||
|
||||
async function main() {
|
||||
const promiseGens = [];
|
||||
|
||||
|
@ -13,7 +17,7 @@ async function main() {
|
|||
|
||||
let prev;
|
||||
|
||||
for (let i = 0; i < count; i++) {
|
||||
for (let i = skip; i < count; i++) {
|
||||
promiseGens.push(() => {
|
||||
const promise = new Promise(async (res, rej) => {
|
||||
function skip() {
|
||||
|
|
Loading…
Reference in a new issue