fix(server): repair ownership UUID generation (#19298)
This commit is contained in:
1 parent
bac35a2ffc
commit
94ca023bf4
1 file changed
+3
-3
@@ -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: () => {
|
||||
|
||||
Reference in new issue
Block a user