Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions hyper/src/utils/system_address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ async fn parse_system_address_or_mast_job(address: &str) -> Result<ChannelAddr,
let (host, port) = SMCClient::new(fbinit::expect_init(), smc_tier)?
.get_system_address()
.await?;
let channel_address = ChannelAddr::MetaTls(MetaTlsAddr::Host {
hostname: canonicalize_hostname(&host),
port,
});
let channel_address = ChannelAddr::MetaTls {
addr: MetaTlsAddr::Host {
hostname: canonicalize_hostname(&host),
port,
},
label: Some("system".to_string()),
};
Ok(channel_address)
}
}
Expand Down
5 changes: 4 additions & 1 deletion hyperactor/benches/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ fn bench_message_sizes(c: &mut Criterion) {
let tt = &transport;
b.iter_custom(|iters| async move {
let addr = ChannelAddr::any(tt.clone());
if let ChannelAddr::Tcp(socket_addr) = addr {
if let ChannelAddr::Tcp {
addr: socket_addr, ..
} = addr
{
assert!(!socket_addr.ip().is_loopback());
}

Expand Down
Loading
Loading