mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
rename appservice service constructor
This commit is contained in:
parent
5be1e20eb4
commit
b18df8de70
2 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@ impl Services {
|
||||||
reload_handles: Option<FilterReloadHandles>,
|
reload_handles: Option<FilterReloadHandles>,
|
||||||
) -> Result<Self> {
|
) -> Result<Self> {
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
appservice: appservice::Service::build(db)?,
|
appservice: appservice::Service::new(db)?,
|
||||||
pusher: pusher::Service {
|
pusher: pusher::Service {
|
||||||
db,
|
db,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ pub(crate) struct Service {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl 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();
|
let mut registration_info = BTreeMap::new();
|
||||||
// Inserting registrations into cache
|
// Inserting registrations into cache
|
||||||
for appservice in db.all()? {
|
for appservice in db.all()? {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue