mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-30 12:27:33 +00:00
style: Reformat
This commit is contained in:
1 parent
c2b52a9bec
commit
0c2909e763
9 files changed
+27
-34
No files matched your search
@@ -161,8 +161,8 @@ impl super::Service {
|
||||
}
|
||||
}
|
||||
|
||||
// 4. Reject "due to auth events" if the event doesn't pass auth based
|
||||
// on the claimed auth events
|
||||
// 4. Reject "due to auth events" if the event doesn't pass auth based on the
|
||||
// claimed auth events
|
||||
debug!("Checking based on auth events");
|
||||
let mut auth_events_by_key: HashMap<_, _> = HashMap::with_capacity(auth_events.len());
|
||||
// Build map of auth events
|
||||
|
||||
@@ -346,8 +346,7 @@ impl Service {
|
||||
.services
|
||||
.state_cache
|
||||
.appservice_in_room(room_id, &appservice)
|
||||
.await
|
||||
|| matching_aliases(appservice.aliases.clone()).await
|
||||
.await || matching_aliases(appservice.aliases.clone()).await
|
||||
{
|
||||
_ = self
|
||||
.send_edu_appservice(&appservice.registration.id, serialized.clone())
|
||||
|
||||
@@ -198,8 +198,7 @@ impl Service {
|
||||
&& let active_count = state
|
||||
.values()
|
||||
.filter(|v| matches!(v, TxnState::Active(_)))
|
||||
.count()
|
||||
&& active_count >= max_active_txns
|
||||
.count() && active_count >= max_active_txns
|
||||
{
|
||||
warn!(
|
||||
active = active_count,
|
||||
|
||||
@@ -77,8 +77,7 @@ impl super::Service {
|
||||
if let Ok(canonical_profile) = to_canonical_object(full_profile) {
|
||||
if serde_json::to_string(&canonical_profile)
|
||||
.expect("should be able to serialize to string")
|
||||
.len()
|
||||
> MAX_PROFILE_LENGTH_BYTES
|
||||
.len() > MAX_PROFILE_LENGTH_BYTES
|
||||
{
|
||||
return Err!(Request(ProfileTooLarge(
|
||||
"Profile data must not exceed {MAX_PROFILE_LENGTH_BYTES} bytes in \
|
||||
|
||||
Reference in new issue
Block a user