From f98ad01ebbf22ec710bf7561e78977c5802ae7cd Mon Sep 17 00:00:00 2001 From: Jinwoo-H Date: Sun, 30 Aug 2026 21:47:51 -0400 Subject: [PATCH] refactor(rpc): keep dispatcher under line budget --- src/main/runtime/rpc/dispatcher.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/runtime/rpc/dispatcher.ts b/src/main/runtime/rpc/dispatcher.ts index 7a19314ace4..435a42f6afd 100644 --- a/src/main/runtime/rpc/dispatcher.ts +++ b/src/main/runtime/rpc/dispatcher.ts @@ -46,7 +46,7 @@ export class RpcDispatcher { } async dispatch(request: RpcRequest, options?: DispatchCallOptions): Promise { - const meta = this.meta() + const meta: RpcEnvelopeMeta = { runtimeId: this.runtime.getRuntimeId() } const method = this.registry.get(request.method) if (!method) { return errorResponse( @@ -166,7 +166,7 @@ export class RpcDispatcher { reply: (response: string) => void, options?: RpcDispatchStreamingOptions ): Promise { - const meta = this.meta() + const meta: RpcEnvelopeMeta = { runtimeId: this.runtime.getRuntimeId() } const method = this.registry.get(request.method) if (!method) { reply( @@ -312,8 +312,4 @@ export class RpcDispatcher { reply(JSON.stringify(mapDispatcherError(request, meta, error))) } } - - private meta(): RpcEnvelopeMeta { - return { runtimeId: this.runtime.getRuntimeId() } - } }