Skip to content

Commit 007ca06

Browse files
committed
Lint fixes
1 parent 30b668c commit 007ca06

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Diff for: perfTest/types.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
declare global {
2+
namespace GraphileWorker {
3+
interface Tasks {
4+
latency: { id: number };
5+
}
6+
}
7+
}
8+
9+
export type Foo = "Foo";

Diff for: src/localQueue.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import assert from "assert";
33
import {
44
CompiledSharedOptions,
55
EnhancedWithPgClient,
6-
PromiseOrDirect,
76
WorkerPoolOptions,
87
} from ".";
98
import { MINUTE, SECOND } from "./cronConstants";

Diff for: src/main.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -658,10 +658,11 @@ export function _runTaskList(
658658
get worker() {
659659
return concurrency === 1 ? this._workers[0] ?? null : null;
660660
},
661-
nudge(this: WorkerPool, n: number) {
661+
nudge(this: WorkerPool, count: number) {
662662
if (localQueue) {
663663
localQueue.pulse();
664664
} else {
665+
let n = count;
665666
// Nudge up to `n` workers
666667
this._workers.some((worker) => worker.nudge() && --n <= 0);
667668
}

0 commit comments

Comments
 (0)