Skip to content

Commit f315ad4

Browse files
committed
Do the health check properly
1 parent 3afdd40 commit f315ad4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/consul/client.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,11 @@ impl Consul {
110110
tags.push("ineligible".into());
111111
}
112112

113+
let service_address = &self.app_config.consul.service_address;
114+
let service_port = &self.app_config.http.port;
115+
113116
let http_check = ServiceCheck {
114-
http: "/healthz".into(),
117+
http: format!("http://{service_address}:{service_port}/healthz").into(),
115118
interval: "10s".into(),
116119
name: "Check It's Still There".into(),
117120
};

0 commit comments

Comments
 (0)