1
0
forked from mirror/misskey
This commit is contained in:
syuilo 2018-05-04 15:17:00 +09:00
parent 0e1f858dfd
commit d000b9e7cd

View File

@ -6,6 +6,10 @@ const { default: Note } = require('../built/models/note');
const { default: MessagingMessage } = require('../built/models/messaging-message'); const { default: MessagingMessage } = require('../built/models/messaging-message');
const { default: User } = require('../built/models/user'); const { default: User } = require('../built/models/user');
const args = process.argv.slice(2);
const skip = parseInt(args[0] || '0', 10);
async function main() { async function main() {
const promiseGens = []; const promiseGens = [];
@ -13,7 +17,7 @@ async function main() {
let prev; let prev;
for (let i = 0; i < count; i++) { for (let i = skip; i < count; i++) {
promiseGens.push(() => { promiseGens.push(() => {
const promise = new Promise(async (res, rej) => { const promise = new Promise(async (res, rej) => {
function skip() { function skip() {