Skip to content

Commit dd51cac

Browse files
kvinwangCopilot
andauthored
Update gateway/src/main_service.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ae3ffa0 commit dd51cac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gateway/src/main_service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,8 @@ impl ProxyState {
949949
pub(crate) fn instance_port_attrs(
950950
&self,
951951
instance_id: &str,
952-
) -> Option<BTreeMap<u16, PortFlags>> {
953-
self.state.instances.get(instance_id)?.port_attrs.clone()
952+
) -> Option<&BTreeMap<u16, PortFlags>> {
953+
self.state.instances.get(instance_id)?.port_attrs.as_ref()
954954
}
955955

956956
/// Update an instance's port_attrs (used after a lazy fetch via Info()).

0 commit comments

Comments
 (0)