make reload_handles optional for creating Services

This will be useful for instantiating services in CLI subcommands, which
have different requirements around observeability.
This commit is contained in:
Charles Hall 2024-10-22 12:17:03 -07:00
parent b03c2a15b3
commit 86481fd651
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
4 changed files with 9 additions and 5 deletions

View file

@ -62,7 +62,7 @@ impl Services {
>(
db: &'static D,
config: Config,
reload_handles: FilterReloadHandles,
reload_handles: Option<FilterReloadHandles>,
) -> Result<Self> {
Ok(Self {
appservice: appservice::Service::build(db)?,