()
| 261 | }, |
| 262 | annotateRpcsMerge<S>(this: Entity<string, any>, annotations: Context.Context<S>) { |
| 263 | return fromRpcGroup(this.type, this.protocol.annotateRpcsMerge(annotations)) |
| 264 | }, |
| 265 | getShardId(this: Entity<string, any>, entityId: EntityId) { |
| 266 | return Effect.map(shardingTag, (sharding) => sharding.getShardId(entityId, this.getShardGroup(entityId))) |
| 267 | }, |
| 268 | get client() { |
| 269 | return shardingTag.pipe( |
| 270 | Effect.flatMap((sharding) => sharding.makeClient(this as any)) |
searching dependent graphs…