| ... | @@ -94,9 +94,9 @@ export const acquireServerOwnership = Effect.fn("acquireServerOwnership")(functi | ... | @@ -94,9 +94,9 @@ export const acquireServerOwnership = Effect.fn("acquireServerOwnership")(functi |
| 94 | ) { | 94 | ) { |
| 95 | const stateDir = NodePath.dirname(statePath); | 95 | const stateDir = NodePath.dirname(statePath); |
| 96 | const crypto = yield* Crypto.Crypto; | 96 | const crypto = yield* Crypto.Crypto; |
| 97 | const ownerId = yield* crypto.randomUUIDv4.pipe( | 97 | const ownerId = yield* crypto |
| 98 | Effect.mapError((cause) => new ServerOwnershipError({ stateDir, cause })), | 98 | .randomUUIDv4() |
| 99 | ); | 99 | .pipe(Effect.mapError((cause) => new ServerOwnershipError({ stateDir, cause }))); |
| 100 | yield* Effect.acquireRelease( | 100 | yield* Effect.acquireRelease( |
| 101 | Effect.try({ | 101 | Effect.try({ |
| 102 | try: () => { | 102 | try: () => { |