* wip * update pnpm-lock * use our own DevNull * fix * deliverJobConcurrencyをmacSocketsで割ってソケット数にする
This commit is contained in:
parent
b62894ff56
commit
6589e8a390
4 changed files with 49 additions and 19 deletions
11
packages/backend/src/misc/dev-null.ts
Normal file
11
packages/backend/src/misc/dev-null.ts
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { Writable, WritableOptions } from "node:stream";
|
||||
|
||||
export class DevNull extends Writable implements NodeJS.WritableStream {
|
||||
constructor(opts?: WritableOptions) {
|
||||
super(opts);
|
||||
}
|
||||
|
||||
_write (chunk: any, encoding: BufferEncoding, cb: (err?: Error | null) => void) {
|
||||
setImmediate(cb);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue