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

Function annotateRpcsMerge

packages/effect/src/unstable/rpc/RpcGroup.ts:375–384  ·  view source on GitHub ↗
(this: RpcGroup<any>, context: Context.Context<any>)

Source from the content-addressed store, hash-verified

373 })
374 },
375 annotateRpcsMerge(this: RpcGroup<any>, context: Context.Context<any>) {
376 const requests = new Map<string, any>()
377 for (const [tag, rpc] of this.requests) {
378 requests.set(tag, rpc.annotateMerge(Context.merge(context, rpc.annotations)))
379 }
380 return makeProto({
381 requests,
382 annotations: this.annotations
383 })
384 }
385}
386
387const makeProto = <Rpcs extends Rpc.Any>(options: {

Callers

nothing calls this directly

Calls 4

mergeMethod · 0.80
makeProtoFunction · 0.70
setMethod · 0.65
annotateMergeMethod · 0.65

Tested by

no test coverage detected