mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
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:
parent
b03c2a15b3
commit
86481fd651
4 changed files with 9 additions and 5 deletions
|
|
@ -80,7 +80,7 @@ pub(crate) async fn run(args: ServeArgs) -> Result<(), error::ServeCommand> {
|
|||
.map_err(Error::DatabaseError)?,
|
||||
));
|
||||
|
||||
Services::build(db, config, reload_handles)
|
||||
Services::build(db, config, Some(reload_handles))
|
||||
.map_err(Error::InitializeServices)?
|
||||
.install();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue