We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8d01ce2 + fb0688b commit 9e58267Copy full SHA for 9e58267
tappd/src/main.rs
@@ -121,13 +121,12 @@ async fn run_watchdog(port: u16) {
121
info!("Watchdog enabled, interval={watchdog_usec}us, heartbeat={heatbeat_interval:?}",);
122
let mut interval = tokio::time::interval(heatbeat_interval);
123
124
- // Create HTTP client for health checks
125
- let client = reqwest::Client::new();
126
-
127
let probe_url = format!("http://localhost:{port}/prpc/Worker.Version");
128
loop {
129
interval.tick().await;
130
+ // Create HTTP client for health checks
+ let client = reqwest::Client::new();
131
// Perform health check
132
match client.get(&probe_url).send().await {
133
Ok(response) if response.status().is_success() => {
0 commit comments