remove warnings around initiator loading. cleaner error handling remains todo.

This commit is contained in:
Jonathan Krebs 2024-12-13 15:24:22 +01:00
parent 40ba114e61
commit 8b15acf983
2 changed files with 5 additions and 2 deletions

View File

@ -100,7 +100,7 @@ pub fn load(
config: &Config,
resources: ResourcesHandle,
sessions: SessionManager,
authentication: AuthenticationHandle,
_authentication: AuthenticationHandle,
) -> miette::Result<()> {
let span = tracing::info_span!("loading initiators");
let _guard = span.enter();

View File

@ -87,6 +87,7 @@ impl error::Description for SignalHandlerErr {
}
#[derive(Debug, Error, Diagnostic)]
// TODO 0.5: #[non_exhaustive]
pub enum BFFHError {
#[error("DB operation failed")]
DBError(
@ -210,7 +211,9 @@ impl Diflouroborane {
self.resources.clone(),
sessionmanager.clone(),
authentication.clone(),
);
).expect("initializing initiators failed");
// TODO 0.5: error handling. Add variant to BFFHError
actors::load(self.executor.clone(), &self.config, self.resources.clone())?;
let tlsconfig = TlsConfig::new(self.config.tlskeylog.as_ref(), !self.config.is_quiet())?;