Skip to content

[hyperactor]: mailbox: make PortHandle::port_index private #304

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
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
3 changes: 1 addition & 2 deletions hyperactor/src/mailbox/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1305,8 +1305,7 @@ impl cap::sealed::CanSplitPort for Mailbox {
#[derive(Debug)]
pub struct PortHandle<M: Message> {
mailbox: Mailbox,
// TEMPORARY until we remove hardcoded port IDs
pub(crate) port_index: u64,
port_index: u64,
sender: UnboundedPortSender<M>,
// We would like this to be a Arc<OnceLock<PortRef<M>>>, but we cannot
// write down the type PortRef<M> (M: Message), even though we cannot
Expand Down