asdf
This commit is contained in:
parent
e51415766c
commit
cfde8a7b87
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ module.exports = class {
|
||||||
|
|
||||||
this.toRemove = [];
|
this.toRemove = [];
|
||||||
|
|
||||||
for (let i = 0; i < 6; i++) {
|
for (let i = 0; i < 4; i++) {
|
||||||
const worker = new Worker(workerPath);
|
const worker = new Worker(workerPath);
|
||||||
this.threadPool.push([false, worker]);
|
this.threadPool.push([false, worker]);
|
||||||
const myID = i;
|
const myID = i;
|
||||||
|
|
|
@ -78,7 +78,7 @@ module.exports.init = function(config) {
|
||||||
const user = netUsers[netUserKeys];
|
const user = netUsers[netUserKeys];
|
||||||
|
|
||||||
let itemsToRemove = [];
|
let itemsToRemove = [];
|
||||||
for (let i = 0; i < Math.min(user.chunksToSend.getLength(), 32); i++) {
|
for (let i = 0; i < Math.min(user.chunksToSend.getLength(), 128); i++) {
|
||||||
const chunkKey = user.chunksToSend.itemKeys[i];
|
const chunkKey = user.chunksToSend.itemKeys[i];
|
||||||
itemsToRemove.push(chunkKey);
|
itemsToRemove.push(chunkKey);
|
||||||
user.socket.write(user.chunksToSend.items[chunkKey]);
|
user.socket.write(user.chunksToSend.items[chunkKey]);
|
||||||
|
|
Loading…
Reference in a new issue