drop iouring, add 2 info logs, silence clippy warning
iouring falls into the same category as eBPF and is a major source of kernel vulnerabilities. the benefits gained here are too minimal to bother keeping this enabled, and makes cross-compiling from macOS impossible Signed-off-by: strawberry <june@girlboss.ceo>
This commit is contained in:
parent
dd544fad29
commit
5106203d67
4 changed files with 4 additions and 2 deletions
|
@ -383,6 +383,7 @@ impl PartialEq for PduEvent {
|
|||
self.event_id == other.event_id
|
||||
}
|
||||
}
|
||||
#[allow(clippy::non_canonical_partial_ord_impl)]
|
||||
impl PartialOrd for PduEvent {
|
||||
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
|
||||
self.event_id.partial_cmp(&other.event_id)
|
||||
|
|
|
@ -85,6 +85,7 @@ impl Service {
|
|||
}
|
||||
|
||||
if services().rooms.metadata.is_disabled(room_id)? {
|
||||
info!("Federaton of room {room_id} is currently disabled on this server. Request by origin {origin} and event ID {event_id}");
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::Forbidden,
|
||||
"Federation of this room is currently disabled on this server.",
|
||||
|
@ -157,6 +158,7 @@ impl Service {
|
|||
for prev_id in sorted_prev_events {
|
||||
// Check for disabled again because it might have changed
|
||||
if services().rooms.metadata.is_disabled(room_id)? {
|
||||
info!("Federaton of room {room_id} is currently disabled on this server. Request by origin {origin} and event ID {event_id}");
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::Forbidden,
|
||||
"Federation of this room is currently disabled on this server.",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue