aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-02-22 15:53:47 +0100
committerAlex Auvolat <alex@adnab.me>2024-02-22 15:53:47 +0100
commit81cebdd12415381f67747e96591e83b1a4a8cc0b (patch)
treecb497dad4639eab1819e18d080e17a8f3e56bc50
parent59f61c966ae5fbc9442a5fc179ad55b7370b6892 (diff)
downloadgarage-81cebdd12415381f67747e96591e83b1a4a8cc0b.tar.gz
garage-81cebdd12415381f67747e96591e83b1a4a8cc0b.zip
[next-0.10] fix build
-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 e8844f29..1c668306 100644
--- a/src/rpc/system.rs
+++ b/src/rpc/system.rs
@@ -520,7 +520,7 @@ impl System {
}
};
- let hostname = self.local_status.read().unwrap().hostname.clone();
+ let hostname = self.local_status.read().unwrap().hostname.clone().unwrap();
if let Err(e) = c
.publish_consul_service(self.netapp.id, &hostname, rpc_public_addr)
.await
@@ -544,7 +544,7 @@ impl System {
}
};
- let hostname = self.local_status.read().unwrap().hostname.clone();
+ let hostname = self.local_status.read().unwrap().hostname.clone().unwrap();
if let Err(e) = publish_kubernetes_node(k, self.netapp.id, &hostname, rpc_public_addr).await
{
error!("Error while publishing node to Kubernetes: {}", e);