From b1318e88c3e0395e7566015cf70f1483d6b72389 Mon Sep 17 00:00:00 2001 From: Peng Zhang Date: Mon, 24 Nov 2025 09:17:24 -0800 Subject: [PATCH] Set LocalAlloc's transport to be Local Summary: I notice channels served from `LocalAlloc` is using metatls. I guess that is because by default it gets the transport from the input spec, which contains metatls: https://www.internalfb.com/code/fbsource/[056940bb1cd57f5dc7702498a081c26f58c1e7ba]/fbcode/monarch/hyperactor_mesh/src/alloc/local.rs?lines=132-133%2C150 This diffs explicitly set `LocalAlloc`'s transport to be `Local`, so it would not use the default impl, i.e. the spec's transport instead: https://www.internalfb.com/code/fbsource/[f46af006d39e28c30ccd00afb81e576c995a831f]/fbcode/monarch/hyperactor_mesh/src/alloc.rs?lines=327%2C349-352 Differential Revision: D84851977 --- hyperactor_mesh/src/alloc/local.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hyperactor_mesh/src/alloc/local.rs b/hyperactor_mesh/src/alloc/local.rs index da0e99e37..c25f9a1a9 100644 --- a/hyperactor_mesh/src/alloc/local.rs +++ b/hyperactor_mesh/src/alloc/local.rs @@ -19,6 +19,7 @@ use hyperactor::ProcId; use hyperactor::WorldId; use hyperactor::channel; use hyperactor::channel::ChannelAddr; +use hyperactor::channel::ChannelTransport; use hyperactor::mailbox::MailboxServer; use hyperactor::mailbox::MailboxServerHandle; use hyperactor::proc::Proc; @@ -256,6 +257,10 @@ impl Alloc for LocalAlloc { &self.spec } + fn transport(&self) -> ChannelTransport { + ChannelTransport::Local + } + fn extent(&self) -> &Extent { &self.spec.extent }