mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
style: Warn -> debug_warn
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
use std::{borrow::Borrow, collections::BTreeMap, sync::Arc, time::Instant};
|
use std::{borrow::Borrow, collections::BTreeMap, sync::Arc, time::Instant};
|
||||||
|
|
||||||
use conduwuit::{
|
use conduwuit::{
|
||||||
Err, Result, debug, debug_info, debug_warn, err, implement, is_equal_to,
|
debug, debug_info, debug_warn, err, implement, is_equal_to, matrix::{state_res, Event, EventTypeExt, PduEvent, StateKey}, trace,
|
||||||
matrix::{Event, EventTypeExt, PduEvent, StateKey, state_res},
|
|
||||||
trace,
|
|
||||||
utils::{
|
utils::{
|
||||||
IterStream,
|
|
||||||
stream::{BroadbandExt, ReadyExt},
|
stream::{BroadbandExt, ReadyExt},
|
||||||
|
IterStream,
|
||||||
},
|
},
|
||||||
warn,
|
warn,
|
||||||
|
Err,
|
||||||
|
Result,
|
||||||
};
|
};
|
||||||
use futures::{FutureExt, StreamExt, future::ready};
|
use futures::{future::ready, FutureExt, StreamExt};
|
||||||
use ruma::{CanonicalJsonValue, RoomId, ServerName, events::StateEventType};
|
use ruma::{events::StateEventType, CanonicalJsonValue, RoomId, ServerName};
|
||||||
use tokio::join;
|
use tokio::join;
|
||||||
|
|
||||||
use super::get_room_version_rules;
|
use super::get_room_version_rules;
|
||||||
@@ -59,8 +59,7 @@ where
|
|||||||
// If any of the auth events are rejected, this event is also rejected.
|
// If any of the auth events are rejected, this event is also rejected.
|
||||||
for aid in incoming_pdu.auth_events() {
|
for aid in incoming_pdu.auth_events() {
|
||||||
if self.services.pdu_metadata.is_event_rejected(aid).await {
|
if self.services.pdu_metadata.is_event_rejected(aid).await {
|
||||||
// TODO: debug_warn instead of warn
|
debug_warn!(
|
||||||
warn!(
|
|
||||||
"Rejecting incoming event {} which depends on rejected auth event {aid}",
|
"Rejecting incoming event {} which depends on rejected auth event {aid}",
|
||||||
incoming_pdu.event_id()
|
incoming_pdu.event_id()
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user