MCPcopy Index your code
hub / github.com/Effect-TS/effect / shardGroupConfig

Function shardGroupConfig

packages/cluster/src/ShardingConfig.ts:307–319  ·  view source on GitHub ↗
(config: ShardingConfig["Type"])

Source from the content-addressed store, hash-verified

305 * @category Shard groups
306 */
307export const shardGroupConfig = (config: ShardingConfig["Type"]): {
308 readonly available: ReadonlySet<string>
309 readonly assigned: ReadonlySet<string>
310} => {
311 const available = new Set(config.availableShardGroups.slice().sort())
312 const assigned = new Set<string>()
313 available.forEach((group) => {
314 if (config.assignedShardGroups.includes(group)) {
315 assigned.add(group)
316 }
317 })
318 return { available, assigned }
319}

Callers 1

Sharding.tsFile · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…