-
client/service: rename the in-process fast-path to Local + service knob (#4855)
发布于
2026-07-15 16:02:57 +00:00 | 56 次提交 在此版本后已推送到 masterRenames the fast-path option to the cleaner Local across the stack (it's
still unreleased) and adds a service-level knob:- client.Local() (was client.LocalDispatch) enables the in-process
fast-path; Options.Local is the field. The internal/network package it
dispatches through is the "local network". - service.Local() (aliased micro.Local()) turns it on for a whole
service's client in one place — every co-located unary call (agent tool
calls, flow dispatch, gateway -> service) takes the fast-path, no
per-call wiring. Same o.Client.Init(...) pattern the Broker option uses.
Off by default; a no-op for distributed deployments since the fast-path
falls back to the network for anything not co-located.Claude-Session: https://claude.ai/code/session_01CmdEY7pYmV5zzwCjNJ4ykL
Co-authored-by: Claude noreply@anthropic.com
下载附件
- client.Local() (was client.LocalDispatch) enables the in-process