go away
This commit is contained in:
parent
fffb298205
commit
0fac405c13
1 changed files with 6 additions and 10 deletions
16
site.js
16
site.js
|
@ -169,27 +169,23 @@ async function siteCollector(user, path, site, useLimit) {
|
|||
}
|
||||
}
|
||||
data[u] = { followers: [], following: [] };
|
||||
p.push(async function (k, u) {
|
||||
let inLegal = penv.indexOf(u) != -1;//legal.indexOf(u) != -1;
|
||||
|
||||
let j1 = await siteCollector(u, 'followers', site, inLegal);
|
||||
p.push(async function (k) {
|
||||
let j1 = await siteCollector(u, 'followers', site, true);
|
||||
|
||||
data[u].followers = j1;
|
||||
console.log(`User ${u} followers fully calculated`);
|
||||
|
||||
p[k] = 'hi';
|
||||
}(p.length, u));
|
||||
}(p.length));
|
||||
|
||||
p.push(async function (k, u) {
|
||||
let inLegal = penv.indexOf(u) != -1;//legal.indexOf(u) != -1;
|
||||
|
||||
let j1 = await siteCollector(u, 'following', site, inLegal);
|
||||
p.push(async function (k) {
|
||||
let j1 = await siteCollector(u, 'following', site,true);
|
||||
|
||||
data[u].following = j1;
|
||||
console.log(`User ${u} following fully calculated`);
|
||||
|
||||
p[k] = 'hi';
|
||||
}(p.length,u));
|
||||
}(p.length));
|
||||
}
|
||||
|
||||
p = p.concat(congested);
|
||||
|
|
Loading…
Reference in a new issue