diff options
author | Roberto Hidalgo <un@rob.mx> | 2023-05-08 13:10:23 -0600 |
---|---|---|
committer | Roberto Hidalgo <un@rob.mx> | 2023-05-22 08:57:15 -0600 |
commit | 4d6e6fc155bb263a04f7f6dfbb77933f5d2d0b2e (patch) | |
tree | c19c3e9bf16a9151808ba5f000f4bfde97f1be20 /src/rpc/system.rs | |
parent | 02ba9016ab6eca5bb4964549de002573d5a3a07a (diff) | |
download | garage-4d6e6fc155bb263a04f7f6dfbb77933f5d2d0b2e.tar.gz garage-4d6e6fc155bb263a04f7f6dfbb77933f5d2d0b2e.zip |
cargo fmt
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r-- | src/rpc/system.rs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs index b0fef6f2..287cd666 100644 --- a/src/rpc/system.rs +++ b/src/rpc/system.rs @@ -100,7 +100,11 @@ pub struct System { system_endpoint: Arc<Endpoint<SystemRpc, System>>, rpc_listen_addr: SocketAddr, - #[cfg(any(feature = "consul-discovery", feature = "consul-service-discovery", feature = "kubernetes-discovery"))] + #[cfg(any( + feature = "consul-discovery", + feature = "consul-service-discovery", + feature = "kubernetes-discovery" + ))] rpc_public_addr: Option<SocketAddr>, bootstrap_peers: Vec<String>, @@ -386,7 +390,11 @@ impl System { replication_mode, replication_factor, rpc_listen_addr: config.rpc_bind_addr, - #[cfg(any(feature = "consul-discovery", feature = "consul-service-discovery", feature = "kubernetes-discovery"))] + #[cfg(any( + feature = "consul-discovery", + feature = "consul-service-discovery", + feature = "kubernetes-discovery" + ))] rpc_public_addr, bootstrap_peers: config.bootstrap_peers.clone(), #[cfg(feature = "consul-discovery")] @@ -601,7 +609,6 @@ impl System { } } - #[cfg(feature = "kubernetes-discovery")] async fn advertise_to_kubernetes(self: Arc<Self>) { let k = match &self.kubernetes_discovery { |