Skip to content

Commit 18a9024

Browse files
fix(shared): start the writer worker with Result.try
AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 3676831 commit 18a9024

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/shared/src/nodeSqliteClient.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ const startWriterWorker = Effect.fnUntraced(function* (options: SqliteClientConf
498498
Effect.logWarning("SQLite writer worker unavailable; writes run on the main thread", {
499499
reason,
500500
});
501-
const created = yield* Effect.try(
501+
const created = Result.try(
502502
() =>
503503
new NodeWorkerThreads.Worker(connectionWorkerSource, {
504504
eval: true,
@@ -510,9 +510,9 @@ const startWriterWorker = Effect.fnUntraced(function* (options: SqliteClientConf
510510
prepareCacheSize: 200,
511511
},
512512
}),
513-
).pipe(Effect.result);
513+
);
514514
if (Result.isFailure(created)) {
515-
yield* warn(String(created.failure.cause));
515+
yield* warn(String(created.failure));
516516
return undefined;
517517
}
518518
const worker = created.success;

0 commit comments

Comments
 (0)