@effect/cluster 0.52.1 → 0.52.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/Singleton.ts CHANGED
@@ -17,7 +17,7 @@ export const make = <E, R>(
17
17
  readonly shardGroup?: string | undefined
18
18
  }
19
19
  ): Layer.Layer<never, never, Sharding | Exclude<R, Scope>> =>
20
- Layer.effectDiscard(Effect.gen(function*() {
20
+ Layer.scopedDiscard(Effect.gen(function*() {
21
21
  const sharding = yield* Sharding
22
22
  yield* sharding.registerSingleton(name, run, options)
23
23
  }))