rename appservice service constructor

This commit is contained in:
Charles Hall 2024-10-08 16:07:03 -07:00
parent 5be1e20eb4
commit b18df8de70
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 2 additions and 2 deletions

View file

@ -65,7 +65,7 @@ impl Services {
reload_handles: Option<FilterReloadHandles>,
) -> Result<Self> {
Ok(Self {
appservice: appservice::Service::build(db)?,
appservice: appservice::Service::new(db)?,
pusher: pusher::Service {
db,
},

View file

@ -117,7 +117,7 @@ pub(crate) struct Service {
}
impl Service {
pub(crate) fn build(db: &'static dyn Data) -> Result<Self> {
pub(crate) fn new(db: &'static dyn Data) -> Result<Self> {
let mut registration_info = BTreeMap::new();
// Inserting registrations into cache
for appservice in db.all()? {