Skip to content

Commit

Permalink
Fix rust errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongin committed Mar 28, 2024
1 parent 9be7286 commit bb0ad39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rs/src/connections/relay_tunnel_host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl RelayTunnelHost {
&self.locator,
&TunnelRelayTunnelEndpoint {
base: TunnelEndpoint {
id: format!("{}-relay", self.host_id),
id: Some(format!("{}-relay", self.host_id)),
connection_mode: TunnelConnectionMode::TunnelRelay,
host_id: self.host_id.to_string(),
host_public_keys: vec![],
Expand Down
4 changes: 2 additions & 2 deletions rs/src/management/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl TunnelManagementClient {
) -> HttpResult<TunnelEndpoint> {
let mut url = self.build_tunnel_uri(
locator,
Some(&format!("{}/{}", ENDPOINTS_API_SUB_PATH, endpoint.id)),
Some(&format!("{}/{}", ENDPOINTS_API_SUB_PATH, endpoint.id.unwrap())),
);
url.query_pairs_mut()
.append_pair("connectionMode", &endpoint.connection_mode.to_string());
Expand All @@ -180,7 +180,7 @@ impl TunnelManagementClient {
) -> HttpResult<TunnelRelayTunnelEndpoint> {
let mut url = self.build_tunnel_uri(
locator,
Some(&format!("{}/{}", ENDPOINTS_API_SUB_PATH, endpoint.base.id)),
Some(&format!("{}/{}", ENDPOINTS_API_SUB_PATH, endpoint.base.id.unwrap())),
);
url.query_pairs_mut()
.append_pair("connectionMode", &endpoint.base.connection_mode.to_string());
Expand Down

0 comments on commit bb0ad39

Please sign in to comment.