rename Services constructor

This commit is contained in:
Charles Hall 2024-10-25 14:29:15 -07:00
parent fefc84e8c7
commit 4083451a10
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 2 additions and 2 deletions

View file

@ -84,7 +84,7 @@ pub(crate) async fn run(args: ServeArgs) -> Result<(), error::ServeCommand> {
.map_err(Error::DatabaseError)?, .map_err(Error::DatabaseError)?,
)); ));
Services::build(db, config, Some(reload_handles)) Services::new(db, config, Some(reload_handles))
.map_err(Error::InitializeServices)? .map_err(Error::InitializeServices)?
.install(); .install();

View file

@ -40,7 +40,7 @@ pub(crate) struct Services {
impl Services { impl Services {
#[allow(clippy::too_many_lines)] #[allow(clippy::too_many_lines)]
pub(crate) fn build< pub(crate) fn new<
D: appservice::Data D: appservice::Data
+ pusher::Data + pusher::Data
+ rooms::Data + rooms::Data