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

Function getShardId

packages/cluster/src/Entity.ts:231–233  ·  view source on GitHub ↗
(this: Entity<string, any>, entityId: EntityId)

Source from the content-addressed store, hash-verified

229 return fromRpcGroup(this.type, this.protocol.annotateRpcsContext(context))
230 },
231 getShardId(this: Entity<string, any>, entityId: EntityId) {
232 return Effect.map(shardingTag, (sharding) => sharding.getShardId(entityId, this.getShardGroup(entityId)))
233 },
234 get client() {
235 return shardingTag.pipe(
236 Effect.flatMap((sharding) => sharding.makeClient(this as any))

Callers

nothing calls this directly

Calls 3

getShardIdMethod · 0.80
getShardGroupMethod · 0.80
mapMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…