fix(server): repair ownership UUID generation (#19298)

This commit is contained in:
Theo Browne authored and GitHub committed 2026-10-14 01:03:58 -07:00
1 parent bac35a2ffc
commit 94ca023bf4
1 file changed
+3 -3
+3 -3
View File
@@ -94,9 +94,9 @@ export const acquireServerOwnership = Effect.fn("acquireServerOwnership")(functi
) {
const stateDir = NodePath.dirname(statePath);
const crypto = yield* Crypto.Crypto;
const ownerId = yield* crypto.randomUUIDv4.pipe(
Effect.mapError((cause) => new ServerOwnershipError({ stateDir, cause })),
);
const ownerId = yield* crypto
.randomUUIDv4()
.pipe(Effect.mapError((cause) => new ServerOwnershipError({ stateDir, cause })));
yield* Effect.acquireRelease(
Effect.try({
try: () => {