mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
ws: add error message context when loading certificate files
This commit is contained in:
parent
7b06bf8736
commit
7255202268
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ pub mod workers;
|
|||
|
||||
use std::sync::Arc;
|
||||
|
||||
use anyhow::Context;
|
||||
use aquatic_common::cpu_pinning::glommio::{get_worker_placement, set_affinity_for_util_worker};
|
||||
use aquatic_common::cpu_pinning::WorkerIndex;
|
||||
use aquatic_common::rustls_config::create_rustls_config;
|
||||
|
|
@ -51,7 +52,7 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
|
|||
Some(Arc::new(create_rustls_config(
|
||||
&config.network.tls_certificate_path,
|
||||
&config.network.tls_private_key_path,
|
||||
)?))
|
||||
).with_context(|| "create rustls config")?))
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue