From f5539bcf953042d1487181b5159801975e17d78b Mon Sep 17 00:00:00 2001 From: Ben Luelo Date: Thu, 28 Sep 2023 10:17:34 -0400 Subject: [PATCH] fix: don't panic if voyager is unreachable --- lib/voyager-sidecar/src/main.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/voyager-sidecar/src/main.rs b/lib/voyager-sidecar/src/main.rs index 844bfac9e2..459469556e 100644 --- a/lib/voyager-sidecar/src/main.rs +++ b/lib/voyager-sidecar/src/main.rs @@ -24,9 +24,7 @@ async fn main() { .get(format!("{voyager_url}/health")) .send() .await - .unwrap() - .status() - == StatusCode::OK + .is_ok_and(|res| res.status() == StatusCode::OK) { break; }