aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-07 15:15:59 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-07 15:15:59 +0100
commit431b28e0cfdc9cac6c649193cf602108a8b02997 (patch)
tree16c6fa4cf80211f655b4f01c60b063e85e84f903 /src/rpc
parent9cecea64d4509e95ac9793b29c947e2ecf9bb0b8 (diff)
downloadgarage-431b28e0cfdc9cac6c649193cf602108a8b02997.tar.gz
garage-431b28e0cfdc9cac6c649193cf602108a8b02997.zip
fix build with discovery features
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/system.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs
index 81a47ff3..adfef6b6 100644
--- a/src/rpc/system.rs
+++ b/src/rpc/system.rs
@@ -514,7 +514,7 @@ impl System {
if let Err(e) = c
.publish_consul_service(
self.netapp.id,
- &self.local_status.load_full().hostname,
+ &self.local_status.load_full().hostname.as_deref().unwrap(),
rpc_public_addr,
)
.await
@@ -541,7 +541,7 @@ impl System {
if let Err(e) = publish_kubernetes_node(
k,
self.netapp.id,
- &self.local_status.load_full().hostname,
+ &self.local_status.load_full().hostname.as_deref().unwrap(),
rpc_public_addr,
)
.await