Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/eng 486 update deployer with runtime changes #696

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: revert this change, the error is a rust-analyzer bug
oddgrd committed Mar 8, 2023

Verified

This commit was signed with the committer’s verified signature.
oddgrd Oddbjørn Grødem
commit 5c2bb328c503f7decf3f34c1ca515797d6d8fe32
9 changes: 4 additions & 5 deletions deployer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -65,11 +65,10 @@ pub async fn start(

info!(address=%args.api_address, "Binding to and listening at address");

let server = axum::Server::bind(&args.api_address).serve(router.into_make_service());

if let Err(_) = server.await {
panic!("Failed to bind to address: {}", args.api_address)
}
axum::Server::bind(&args.api_address)
.serve(router.into_make_service())
.await
.unwrap_or_else(|_| panic!("Failed to bind to address: {}", args.api_address));
}

pub async fn start_proxy(