Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Mar 20, 2024
1 parent 5232269 commit d3870eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions rust/agama-server/src/agama-web-server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,16 @@ async fn serve_command(options: ServeArgs) -> anyhow::Result<()> {
addresses.push(options.address2);
}

let servers: Vec<_> = addresses.iter().map(|a|
tokio::spawn(start_server(a.clone(), service.clone(), ssl_acceptor.clone())
)).collect();
let servers: Vec<_> = addresses
.iter()
.map(|a| {
tokio::spawn(start_server(
a.clone(),
service.clone(),
ssl_acceptor.clone(),
))
})
.collect();

futures_util::future::join_all(servers).await;

Expand Down
2 changes: 1 addition & 1 deletion rust/agama-server/src/cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use openssl::hash::MessageDigest;
use openssl::pkey::{PKey, Private};
use openssl::rsa::Rsa;
use openssl::x509::extension::{
BasicConstraints, SubjectKeyIdentifier, KeyUsage, SubjectAlternativeName,
BasicConstraints, KeyUsage, SubjectAlternativeName, SubjectKeyIdentifier,
};
use openssl::x509::{X509NameBuilder, X509};

Expand Down

0 comments on commit d3870eb

Please sign in to comment.