Compare commits

..
Author SHA1 Message Date
Ginger 4b09176163 chore: News fragment 2026-12-02 22:22:28 -05:00
Ginger aabdb5003c fix: Stop discarding errors when sending a push notification request 2026-12-02 22:15:49 -05:00
timedout d5cf029135 chore: Add news fragment 2026-12-02 13:55:58 +00:00
timedout 34fb1dfb15 feat: Add server-side support for MSC4563 2026-12-02 13:55:58 +00:00
Renovate Bot 032e5ce65b chore(deps): update pre-commit hook crate-ci/typos to v1.53.0 2026-12-02 05:04:10 +00:00
Julian Anderson c316d8f969 ci(docs/preview): Don't try to deploy preview docs for tagged releases
Also, run action validations as a pre-commit hook if workflow files are changed
2026-12-01 09:27:24 -05:00
18 changed files with 171 additions and 407 deletions

No files matched your search

-2
View File
@@ -5,8 +5,6 @@ on:
push:
branches:
- main
tags:
- "v*"
workflow_dispatch:
concurrency:
+9 -1
View File
@@ -24,7 +24,7 @@ repos:
- id: check-added-large-files
- repo: https://github.com/crate-ci/typos
rev: v1.52.2
rev: v1.53.0
hooks:
- id: typos
- id: typos
@@ -62,3 +62,11 @@ repos:
types: [ rust ]
stages:
- pre-push
- repo: https://code.forgejo.org/forgejo/runner
rev: v13.2.1
hooks:
- id: forgejo-runner-validate
stages:
- pre-commit
files: ".forgejo/*"
Generated
-1
View File
@@ -1155,7 +1155,6 @@ dependencies = [
"sha2 0.11.2",
"termimad",
"tokio",
"tokio-stream",
"tracing",
"url",
"web-push-native",
+1 -3
View File
@@ -269,9 +269,6 @@ features = [
[workspace.dependencies.tokio-metrics]
version = "0.5.2"
[workspace.dependencies.tokio-stream]
version = "0.1.19"
[workspace.dependencies.wildmatch]
version = "2.7.0"
@@ -401,6 +398,7 @@ features = [
"unstable-msc4484",
"unstable-msc4540",
"unstable-msc4560",
"unstable-msc4563",
"unstable-extensible-events",
]
-1
View File
@@ -1 +0,0 @@
Add a new parallel room handler queue system. Slow rooms no longer bog down federation across the entire server. Contributed by @nex.
+1
View File
@@ -0,0 +1 @@
Added server-side support for [MSC4563: direct_message push rule](https://github.com/matrix-org/matrix-spec-proposals/pull/4563). Contributed by @nex.
+1
View File
@@ -0,0 +1 @@
Errors while sending push notifications will now appear in the server log under more conditions, and will be registered as failures in Prometheus metrics.
+12
View File
@@ -2808,6 +2808,18 @@
# env: CONTINUWUITY_EXPERIMENTS__MSC4560
#msc4560 = false
# MSC4563: `direct_message` push rule
#
# Creates a new kind of push rule that creates a notification if a message
# is received in a room that is in the user's direct message list. This
# more accurately identifies direct messages, rather than relying on a "DM
# room" only consisting of two members.
#
# https://github.com/matrix-org/matrix-spec-proposals/pull/4563
#
# env: CONTINUWUITY_EXPERIMENTS__MSC4563
#msc4563 = false
#[global.experiments.msc2815]
# MSC2815: Proposal to allow room moderators to view redacted event content
#
+52 -27
View File
@@ -44,10 +44,7 @@ use ruma::{
to_device::DeviceIdOrAllDevices,
};
use service::{
rooms::{
event_handler::{DagBuilderTree, build_local_dag},
queue::QueueJob,
},
rooms::event_handler::{DagBuilderTree, build_local_dag},
transactions::{FederationTxnState, TransactionError, TxnKey, WrappedTransactionResponse},
};
use tokio::sync::watch::{Receiver, Sender};
@@ -335,6 +332,14 @@ async fn handle_room(
room_id: OwnedRoomId,
pdus: impl Iterator<Item = Pdu> + Send,
) -> std::result::Result<Vec<(OwnedEventId, Result)>, TransactionError> {
let arrived = millis_since_unix_epoch();
let _room_lock = services
.rooms
.event_handler
.mutex_federation
.lock(room_id.as_str())
.await;
let room_id = &room_id;
let mut pdu_map: HashMap<OwnedEventId, CanonicalJsonObject> = pdus
.into_iter()
@@ -354,30 +359,50 @@ async fn handle_room(
let value = pdu_map
.remove(&event_id)
.expect("sorted event IDs must be from the original map");
let room_id = match value
.get("room_id")
.and_then(CanonicalJsonValue::as_str)
.map(|v| v.try_into().map_err(Into::into))
{
| Some(Ok(v)) => v,
| Some(Err(e)) => {
results.push((event_id, Err(e)));
continue;
},
| None => {
results
.push((event_id, Err!(Request(BadJson("PDU is missing a room_id field")))));
continue;
},
};
let job = QueueJob {
room_id,
event_id: event_id.clone(),
origin: origin.to_owned(),
object: value,
};
services
.server
.check_running()
.map_err(|_| TransactionError::ShuttingDown)?;
let event_type = KeyValue::new(
"type",
pdu_type_label(value.get("type").and_then(CanonicalJsonValue::as_str)),
);
let origin_server_ts = value
.get("origin_server_ts")
.and_then(CanonicalJsonValue::as_integer)
.and_then(|ts| u64::try_from(i64::from(ts)).ok());
results.push((event_id, services.rooms.queue.new_job(job).await));
let start = Instant::now();
let result = services
.rooms
.event_handler
.handle_incoming_pdu(origin, room_id, &event_id, value, false)
.boxed()
.await
.map(|_| ());
let outcome = KeyValue::new("outcome", match &result {
| Ok(()) => "accepted",
| Err(Error::BadRequest(ErrorKind::Forbidden, ..)) => "forbidden",
| Err(Error::BadRequest(ErrorKind::InvalidParam | ErrorKind::BadJson, ..)) =>
"invalid",
| Err(_) => "error",
});
let instruments = &services.server.metrics.instruments;
instruments
.federation_incoming_pdu_duration
.record(start.elapsed().as_secs_f64(), std::slice::from_ref(&outcome));
if let (Ok(()), Some(ts)) = (&result, origin_server_ts) {
let lag = arrived.saturating_sub(ts);
instruments
.federation_incoming_pdu_lag
.record(Duration::from_millis(lag).as_secs_f64(), &[]);
}
instruments
.federation_incoming_pdus
.add(1, &[event_type, outcome]);
results.push((event_id, result));
}
Ok(results)
}
+13
View File
@@ -146,6 +146,19 @@ pub struct Experiments {
/// default: false
#[serde(default)]
pub msc4560: SimpleExperiment,
/// MSC4563: `direct_message` push rule
///
/// Creates a new kind of push rule that creates a notification if a message
/// is received in a room that is in the user's direct message list. This
/// more accurately identifies direct messages, rather than relying on a "DM
/// room" only consisting of two members.
///
/// https://github.com/matrix-org/matrix-spec-proposals/pull/4563
///
/// default: false
#[serde(default)]
pub msc4563: SimpleExperiment,
}
/// Represents a "simple" experiment, which is either disabled or enabled.
-4
View File
@@ -395,10 +395,6 @@ pub(super) static MAPS: &[Descriptor] = &[
block_size: 512,
..descriptor::RANDOM
},
Descriptor {
name: "txn_jobid_job",
..descriptor::RANDOM
},
Descriptor {
name: "url_previews",
..descriptor::RANDOM
+29 -31
View File
@@ -11,8 +11,8 @@ version.workspace = true
[lib]
path = "mod.rs"
crate-type = [
"rlib",
# "dylib",
"rlib",
# "dylib",
]
[features]
@@ -23,61 +23,61 @@ bindgen-static = [
"conduwuit-database/bindgen-static"
]
brotli_compression = [
"conduwuit-core/brotli_compression",
"reqwest/brotli",
"conduwuit-core/brotli_compression",
"reqwest/brotli",
]
console = [
"dep:rustyline-async",
"dep:termimad",
"dep:rustyline-async",
"dep:termimad",
]
element_hacks = []
gzip_compression = [
"conduwuit-core/gzip_compression",
"reqwest/gzip",
"conduwuit-core/gzip_compression",
"reqwest/gzip",
]
http3 = [
"reqwest/http3"
]
io_uring = [
"conduwuit-database/io_uring",
"conduwuit-database/io_uring",
]
jemalloc = [
"conduwuit-core/jemalloc",
"conduwuit-database/jemalloc",
"conduwuit-core/jemalloc",
"conduwuit-database/jemalloc",
]
jemalloc_conf = [
"conduwuit-core/jemalloc_conf",
"conduwuit-database/jemalloc_conf",
"conduwuit-core/jemalloc_conf",
"conduwuit-database/jemalloc_conf",
]
jemalloc_prof = [
"conduwuit-core/jemalloc_prof",
"conduwuit-database/jemalloc_prof",
"conduwuit-core/jemalloc_prof",
"conduwuit-database/jemalloc_prof",
]
jemalloc_stats = [
"conduwuit-core/jemalloc_stats",
"conduwuit-database/jemalloc_stats",
"conduwuit-core/jemalloc_stats",
"conduwuit-database/jemalloc_stats",
]
media_thumbnail = [
"dep:image",
"dep:image",
]
release_max_log_level = [
"conduwuit-core/release_max_log_level",
"conduwuit-database/release_max_log_level",
"log/max_level_trace",
"log/release_max_level_info",
"tracing/max_level_trace",
"tracing/release_max_level_info",
"conduwuit-core/release_max_log_level",
"conduwuit-database/release_max_log_level",
"log/max_level_trace",
"log/release_max_level_info",
"tracing/max_level_trace",
"tracing/release_max_level_info",
]
systemd = [
"dep:sd-notify",
"dep:sd-notify",
]
url_preview = [
"dep:image",
"dep:webpage",
"dep:image",
"dep:webpage",
]
zstd_compression = [
"conduwuit-core/zstd_compression",
"conduwuit-database/zstd_compression",
"conduwuit-core/zstd_compression",
"conduwuit-database/zstd_compression",
"reqwest/zstd",
]
@@ -122,7 +122,6 @@ sha2.workspace = true
termimad.workspace = true
termimad.optional = true
tokio.workspace = true
tokio-stream.workspace = true
tracing.workspace = true
url.workspace = true
web-push-native.workspace = true
@@ -137,7 +136,6 @@ openidconnect.workspace = true
# which is necessary to call `danger_accept_invalid_certs`.
reqwest_0_12.workspace = true
rand.workspace = true
opentelemetry.workspace = true
[target.'cfg(all(unix, target_os = "linux"))'.dependencies]
sd-notify.workspace = true
+36 -7
View File
@@ -2,6 +2,7 @@ mod webpush;
use std::{fmt::Debug, mem, net::IpAddr, sync::Arc};
use assign::assign;
use bytes::BytesMut;
use conduwuit::{config::experiments::ToggledExperiment, utils::response::LimitReadExt};
use conduwuit_core::{
@@ -23,7 +24,10 @@ use ruma::{
v1::{Device, Notification, NotificationCounts, NotificationPriority},
},
},
events::{AnySyncTimelineEvent, TimelineEventType, room::power_levels::RoomPowerLevels},
events::{
AnySyncTimelineEvent, GlobalAccountDataEvent, GlobalAccountDataEventType,
TimelineEventType, direct::DirectEventContent, room::power_levels::RoomPowerLevels,
},
push::{
Action, HighlightTweakValue, PushConditionPowerLevelsCtx, PushConditionRoomCtx,
PushFormat, Ruleset, Tweak,
@@ -36,7 +40,7 @@ use url::Host;
pub use self::webpush::ActivationOutcome;
use self::webpush::Vapid;
use crate::{Dep, client, config, globals, rooms, sending, users};
use crate::{Dep, account_data, client, config, globals, rooms, sending, users};
const PUSH_GATEWAY_SCHEMES: &[&str] = &["http", "https"];
const WEBPUSH_SCHEMES: &[&str] = &["https"];
@@ -57,6 +61,7 @@ pub struct Service {
struct Services {
server: Arc<Server>,
globals: Dep<globals::Service>,
account_data: Dep<account_data::Service>,
config: Dep<config::Service>,
client: Dep<client::Service>,
state_accessor: Dep<rooms::state_accessor::Service>,
@@ -86,6 +91,7 @@ impl crate::Service for Service {
services: Services {
server: args.server.clone(),
globals: args.depend::<globals::Service>("globals"),
account_data: args.depend::<account_data::Service>("account_data"),
client: args.depend::<client::Service>("client"),
config: args.depend::<config::Service>("config"),
state_accessor: args
@@ -488,11 +494,34 @@ impl Service {
.await
.unwrap_or_else(|_| user.localpart().to_owned());
PushConditionRoomCtx::new(
room_id.to_owned(),
room_joined_count,
user.to_owned(),
user_display_name,
let is_direct = self.services.config.experiments.msc4563.is_enabled()
&& self
.services
.account_data
.get_global::<GlobalAccountDataEvent<DirectEventContent>>(
user,
GlobalAccountDataEventType::Direct,
)
.await
.ok()
.and_then(|direct| {
direct
.content
.values()
.flatten()
.any(|dm_room_id| dm_room_id == room_id)
.then_some(())
})
.is_some();
assign!(
PushConditionRoomCtx::new(
room_id.to_owned(),
room_joined_count,
user.to_owned(),
user_display_name,
),
{ is_direct }
)
.with_power_levels(power_levels)
}
-2
View File
@@ -7,7 +7,6 @@ pub mod membership;
pub mod metadata;
pub mod outlier;
pub mod pdu_metadata;
pub mod queue;
pub mod read_receipt;
pub mod search;
pub mod short;
@@ -33,7 +32,6 @@ pub struct Service {
pub metadata: Arc<metadata::Service>,
pub outlier: Arc<outlier::Service>,
pub pdu_metadata: Arc<pdu_metadata::Service>,
pub queue: Arc<queue::Service>,
pub read_receipt: Arc<read_receipt::Service>,
pub search: Arc<search::Service>,
pub short: Arc<short::Service>,
-65
View File
@@ -1,65 +0,0 @@
use std::sync::Arc;
use conduwuit::{Result, utils::stream::TryIgnore};
use database::{Deserialized, Json, Map};
pub(super) struct Data {
pub global: Arc<Map>,
jobcounter_mutex: tokio::sync::RwLock<()>,
pub txn_jobid_job: Arc<Map>,
}
impl Data {
pub(super) fn new(services: &crate::Args<'_>) -> Self {
Self {
global: services.db["global"].clone(),
jobcounter_mutex: tokio::sync::RwLock::new(()),
txn_jobid_job: services.db["txn_jobid_job"].clone(),
}
}
/// Returns the current job counter value.
#[must_use]
pub(super) async fn current_job_id(&self) -> u64 {
let _lock = self.jobcounter_mutex.read().await;
self.global
.get("txn_jobcounter")
.await
.deserialized()
.unwrap_or_default()
}
/// Increments the global job counter, returning the new value.
#[must_use]
pub(super) async fn next_job_id(&self) -> u64 {
let _lock = self.jobcounter_mutex.write().await;
let current = self
.global
.get("txn_jobcounter")
.await
.deserialized::<u64>()
.unwrap_or_default();
let next = current.checked_add(1).unwrap_or(current);
self.global.insert("txn_jobcounter", next.to_be_bytes());
next
}
/// Saves a job and returns its ID.
pub(super) async fn save_job(&self, job: &super::QueueJob) -> Result<u64> {
let job_id = self.next_job_id().await;
self.txn_jobid_job.raw_put(job_id.to_be_bytes(), Json(job));
Ok(job_id)
}
/// Removes a job from the database.
#[inline]
pub(super) fn finish_job(&self, job_id: u64) {
self.txn_jobid_job.remove(&job_id.to_be_bytes());
}
pub(super) fn stream_all_pending_jobs(
&self,
) -> impl futures::Stream<Item = (u64, super::QueueJob)> + '_ {
self.txn_jobid_job.stream().ignore_err()
}
}
-259
View File
@@ -1,259 +0,0 @@
mod data;
use std::{
collections::{HashMap, hash_map::Entry},
sync::{Arc, OnceLock},
time::{Duration, Instant},
};
use async_trait::async_trait;
use conduwuit::{
Error, Result, Server, SyncMutex, debug, err, error, info, utils::millis_since_unix_epoch,
};
use futures::StreamExt;
use opentelemetry::KeyValue;
use ruma::{
CanonicalJsonObject, CanonicalJsonValue, OwnedEventId, OwnedRoomId, OwnedServerName,
api::error::ErrorKind, events::TimelineEventType,
};
use serde::{Deserialize, Serialize};
use tokio::{
sync::{
Notify, mpsc,
mpsc::{Sender, UnboundedReceiver, UnboundedSender},
},
task::JoinSet,
};
use crate::{
rooms,
service::{Args, Dep},
};
pub struct Services {
event_handler: Dep<rooms::event_handler::Service>,
server: Arc<Server>,
}
pub struct Service {
data: data::Data,
queues: SyncMutex<HashMap<OwnedRoomId, UnboundedSender<(u64, QueueJob)>>>,
send: OnceLock<Sender<(u64, QueueJob)>>,
shutdown: Notify,
services: Services,
}
#[async_trait]
impl crate::Service for Service {
fn build(args: Args<'_>) -> Result<Arc<Self>>
where
Self: Sized,
{
Ok(Arc::new(Self {
data: data::Data::new(&args),
queues: SyncMutex::new(HashMap::new()),
shutdown: Notify::new(),
send: OnceLock::new(),
services: Services {
event_handler: args.depend("rooms::event_handler"),
server: args.server.clone(),
},
}))
}
async fn worker(self: Arc<Self>) -> Result<()> {
let (send, recv) = mpsc::channel(5);
self.send
.set(send)
.expect("send channel cannot already be set during worker init");
let mut recv = tokio_stream::wrappers::ReceiverStream::new(recv);
let mut handles = JoinSet::new();
let (yielder, mut yielding) = mpsc::channel(5);
let latest_job_id = self.data.current_job_id().await;
let backlog_count = self.data.txn_jobid_job.count().await;
debug!(latest_job_id, backlog_count, "Starting room queue worker");
let backlog = std::pin::pin!(self.data.stream_all_pending_jobs());
let mut combined_recv = backlog.chain(&mut recv);
loop {
let Some((job_id, job)) = tokio::select! (
() = self.shutdown.notified() => {
info!("Shutting down");
yielding.close();
recv.close();
break;
},
room_id = yielding.recv() => {
if let Some(room_id) = room_id {
self.queues.lock().remove(&room_id);
}
continue;
},
job = combined_recv.next() => job,
) else {
debug!("Room queue worker channel closed without shutdown?");
break;
};
let mut queues = self.queues.lock();
match queues.entry(job.room_id.clone()) {
| Entry::Occupied(entry) => {
entry.get().send((job_id, job)).unwrap();
// TODO: handle error
// It might be possible for a self-reaping worker to close
// at the same time we try to send to it, which will cause
// this send to return a "channel closed" error.
},
| Entry::Vacant(entry) => {
let room_id = entry.key().to_owned();
let (sender, receiver) = mpsc::unbounded_channel();
sender.send((job_id, job)).unwrap(); // TODO: handle error
handles.spawn_on(
Self::room_worker(self.clone(), room_id, receiver, yielder.clone()),
self.services.server.runtime(),
);
entry.insert(sender);
},
}
}
// If the loop broke, make sure that the shutdown signal was sent, so
// that any room workers are guaranteed to shut down as soon as
// possible.
self.interrupt();
while let Some(ret) = handles.join_next_with_id().await {
match ret {
| Ok((id, ())) => {
debug!(?id, "room queue worker finished");
},
| Err(error) => {
error!(id = ?error.id(), ?error, "room queue worker failed");
},
}
}
Ok(())
}
fn interrupt(&self) { self.shutdown.notify_waiters(); }
fn name(&self) -> &'static str { module_path!() }
}
impl Service {
pub async fn new_job(&self, job: QueueJob) -> Result<()> {
let job_id = self.data.save_job(&job).await?;
self.send
.get()
.expect("send channel must be set before new_job is called")
.send((job_id, job))
.await
.map_err(|e| err!("failed to send PDU to worker: {e}"))
}
#[tracing::instrument(skip(self,channel,yielder), fields(%room_id))]
async fn room_worker(
self: Arc<Self>,
room_id: OwnedRoomId,
mut channel: UnboundedReceiver<(u64, QueueJob)>,
yielder: Sender<OwnedRoomId>,
) {
debug!("Room worker starting up");
loop {
let job = tokio::select! {
() = self.shutdown.notified() => {
debug!("Room worker shutting down");
channel.close();
return;
},
() = tokio::time::sleep(Duration::from_mins(5)) => {
debug!("Room worker self-reaping (no activity in 5 minutes)");
yielder.send(room_id).await.ok();
debug!("Room worker reaped. Goodbye.");
return;
},
job = channel.recv() => job
};
let Some((job_id, job)) = job else {
debug!("Room worker channel closed without shutdown?");
break;
};
debug!(
%job_id,
event_id=%job.event_id,
origin=%job.origin,
backpressure=%channel.len(),
"Handling incoming job"
);
let _room_lock = self
.services
.event_handler
.mutex_federation
.lock(room_id.as_str())
.await;
debug!(%job_id, event_id=%job.event_id, origin=%job.origin, "Acquired room federation lock");
let event_type = KeyValue::new(
"type",
pdu_type_label(job.object.get("type").and_then(CanonicalJsonValue::as_str)),
);
let origin_server_ts = job
.object
.get("origin_server_ts")
.and_then(CanonicalJsonValue::as_integer)
.and_then(|ts| u64::try_from(i64::from(ts)).ok());
let start = Instant::now();
let result = self
.services
.event_handler
.handle_incoming_pdu(&job.origin, &job.room_id, &job.event_id, job.object, false)
.await;
self.data.finish_job(job_id);
let outcome = KeyValue::new("outcome", match &result {
| Ok(_) => "accepted",
| Err(Error::BadRequest(ErrorKind::Forbidden, ..)) => "forbidden",
| Err(Error::BadRequest(ErrorKind::InvalidParam | ErrorKind::BadJson, ..)) =>
"invalid",
| Err(_) => "error",
});
let instruments = &self.services.server.metrics.instruments;
instruments
.federation_incoming_pdu_duration
.record(start.elapsed().as_secs_f64(), std::slice::from_ref(&outcome));
if let (Ok(_), Some(ts)) = (&result, origin_server_ts) {
let lag = millis_since_unix_epoch().saturating_sub(ts);
instruments
.federation_incoming_pdu_lag
.record(Duration::from_millis(lag).as_secs_f64(), &[]);
}
instruments
.federation_incoming_pdus
.add(1, &[event_type, outcome]);
debug!(event_id=%job.event_id, origin=%job.origin, "Job finished");
}
}
}
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct QueueJob {
pub origin: OwnedServerName,
pub event_id: OwnedEventId,
pub room_id: OwnedRoomId,
pub object: CanonicalJsonObject,
}
/// Known event types, or `other`, so remote servers cannot create new
/// attribute values.
fn pdu_type_label(event_type: Option<&str>) -> String {
match event_type.map(TimelineEventType::from) {
| Some(TimelineEventType::_Custom(_)) | None => "other".to_owned(),
| Some(event_type) => event_type.to_string(),
}
}
+17 -3
View File
@@ -970,6 +970,8 @@ impl Service {
}
}
let mut first_push_error = None;
for pdu in pdus {
// Redacted events are not notification targets (we don't send push
// for them)
@@ -995,15 +997,27 @@ impl Service {
.try_into()
.expect("notification count can't go that high");
let _response = self
let response = self
.services
.pusher
.send_push_notice(&user_id, unread, &pusher, rules_for_user, &pdu)
.await
.map_err(|e| (Destination::Push(user_id.clone(), pushkey.clone()), e));
.map_err(|e| (Destination::Push(user_id.clone(), pushkey.clone()), Box::new(e)));
if let Err(err) = response {
error!(event = %pdu.event_id, pusher = %pusher.app_display_name, "Failed to deliver push notification: {err:?}");
if first_push_error.is_none() {
first_push_error = Some(err);
}
}
}
Ok(Destination::Push(user_id, pushkey))
if let Some(err) = first_push_error {
Err(err)
} else {
Ok(Destination::Push(user_id, pushkey))
}
}
async fn send_events_dest_federation(
-1
View File
@@ -101,7 +101,6 @@ impl Services {
metadata: build!(rooms::metadata::Service),
outlier: build!(rooms::outlier::Service),
pdu_metadata: build!(rooms::pdu_metadata::Service),
queue: build!(rooms::queue::Service),
read_receipt: build!(rooms::read_receipt::Service),
search: build!(rooms::search::Service),
short: build!(rooms::short::Service),