MCPcopy Create free account
hub / github.com/Effect-TS/effect / ownedCount

Function ownedCount

packages/effect/test/cluster/Sharding.test.ts:1523–1523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1521 const sharding = yield* Sharding.Sharding
1522 const allShards = Array.makeBy(shardsPerGroup, (i) => ShardId.make("default", i + 1))
1523 const ownedCount = () => allShards.filter((shardId) => sharding.hasShardId(shardId)).length
1524
1525 // the other runner holds part of the ring, so this runner starts with a
1526 // strict subset of the shards

Callers 1

Sharding.test.tsFile · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected