Skip to content

Commit

Permalink
fix: don't panic if voyager is unreachable
Browse files Browse the repository at this point in the history
  • Loading branch information
benluelo committed Sep 28, 2023
1 parent 2ad8097 commit f5539bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/voyager-sidecar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f5539bc

Please sign in to comment.