mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-02 00:38:31 +09:00
キューのメモリ使用量を削減
This commit is contained in:
parent
3f6c6c5b73
commit
06535a37b5
@ -14,7 +14,7 @@ const queue = createQueue({
|
|||||||
export function createHttp(data) {
|
export function createHttp(data) {
|
||||||
return queue
|
return queue
|
||||||
.create('http', data)
|
.create('http', data)
|
||||||
.attempts(16)
|
.attempts(8)
|
||||||
.backoff({ delay: 16384, type: 'exponential' });
|
.backoff({ delay: 16384, type: 'exponential' });
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ export function deliver(user, content, to) {
|
|||||||
user,
|
user,
|
||||||
content,
|
content,
|
||||||
to
|
to
|
||||||
}).save();
|
}).removeOnComplete(true).save();
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
@ -36,5 +36,6 @@ export default function() {
|
|||||||
Network.http.max-connections - MozillaZine Knowledge Base
|
Network.http.max-connections - MozillaZine Knowledge Base
|
||||||
http://kb.mozillazine.org/Network.http.max-connections
|
http://kb.mozillazine.org/Network.http.max-connections
|
||||||
*/
|
*/
|
||||||
queue.process('http', 256, http);
|
//queue.process('http', 256, http);
|
||||||
|
queue.process('http', 128, http);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user