Skip to content

Commit 6bbad52

Browse files
committed
revert to pool auto-scaling
1 parent 1d51f43 commit 6bbad52

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/dirty-paws-walk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/contentlayer": patch
3+
---
4+
5+
revert to pool auto-scaling

packages/core/src/DocumentBuilder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ export class ContentWorkerPool
204204
scoped: RpcClient.make(ContentWorkerSchema.Rpcs),
205205
dependencies: [
206206
RpcClient.layerProtocolWorker({
207-
size: workerPoolSize,
207+
minSize: Math.max(1, Math.floor(workerPoolSize / 2)),
208+
maxSize: workerPoolSize,
209+
timeToLive: "30 seconds",
208210
concurrency: 10
209211
}).pipe(
210212
Layer.provide(NodeWorker.layerPlatform(() => tsWorker("./ContentWorker")))

0 commit comments

Comments
 (0)