mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
rename constructor for sending service
This commit is contained in:
parent
4faa8ea37c
commit
55b605f046
2 changed files with 2 additions and 2 deletions
|
|
@ -177,7 +177,7 @@ impl Services {
|
|||
media: media::Service {
|
||||
db,
|
||||
},
|
||||
sending: sending::Service::build(db, &config),
|
||||
sending: sending::Service::new(db, &config),
|
||||
|
||||
globals: globals::Service::load(db, config, reload_handles)?,
|
||||
})
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ enum SelectedEvents {
|
|||
}
|
||||
|
||||
impl Service {
|
||||
pub(crate) fn build(db: &'static dyn Data, config: &Config) -> Arc<Self> {
|
||||
pub(crate) fn new(db: &'static dyn Data, config: &Config) -> Arc<Self> {
|
||||
let (sender, receiver) = mpsc::unbounded_channel();
|
||||
Arc::new(Self {
|
||||
db,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue