hyperactor_mesh/
transport.rs1use hyperactor::channel::BindSpec;
12use hyperactor::channel::ChannelTransport;
13use hyperactor_config::CONFIG;
14use hyperactor_config::ConfigAttr;
15use hyperactor_config::attrs::declare_attrs;
16use hyperactor_config::global;
17
18declare_attrs! {
19 @meta(CONFIG = ConfigAttr::new(
21 Some("HYPERACTOR_MESH_DEFAULT_TRANSPORT".to_string()),
22 Some("default_transport".to_string()),
23 ))
24 pub attr DEFAULT_TRANSPORT: BindSpec = BindSpec::Any(ChannelTransport::Unix);
25}
26
27pub fn default_bind_spec() -> BindSpec {
29 global::get_cloned(DEFAULT_TRANSPORT)
30}