Skip to content

Commit b540ed0

Browse files
committed
fix: repair semaphore type and api import in bounded bulk concurrency
1 parent 4d5523c commit b540ed0

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/lib/bulk/bulkOperations.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { apiClient } from '@lib/api';
1+
import { apiClient } from '@/lib/api';
22

33
export type BulkOperationType = 'create' | 'update' | 'delete';
44

@@ -49,9 +49,7 @@ const DEFAULT_CONCURRENCY = 10;
4949
class Semaphore {
5050
private capacity: number;
5151
private active = 0;
52-
private waiters: Array<(
53-
() => void
54-
OK> = [];
52+
private waiters: Array<() => void> = [];
5553

5654
constructor(capacity: number) {
5755
this.capacity = Math.max(1, Math.floor(capacity));

0 commit comments

Comments
 (0)