()
| 231 | // the active shards are the ones that we have acquired the lock for |
| 232 | const acquiredShards = MutableHashSet.empty<ShardId>() |
| 233 | const updateShardsGauge = () => ClusterMetrics.shards.unsafeUpdate(BigInt(MutableHashSet.size(acquiredShards)), []) |
| 234 | const activeShardsLatch = yield* Effect.makeLatch(false) |
| 235 | // set once shutdown starts handing every shard off |
| 236 | let handingOff = false |
no test coverage detected