mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-22 03:33:48 +01:00
remove warnings around initiator loading. cleaner error handling remains todo.
This commit is contained in:
parent
40ba114e61
commit
8b15acf983
@ -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();
|
||||
|
@ -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())?;
|
||||
|
Loading…
Reference in New Issue
Block a user