mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-12-03 22:01:50 +00:00
style: Tidy up
This commit is contained in:
1 parent
3ff2797b11
commit
fd0f458978
2 files changed
+21
-20
No files matched your search
@@ -1,7 +1,7 @@
|
||||
use std::{collections::HashMap, time::Instant};
|
||||
|
||||
use conduwuit::{
|
||||
Event, PduEvent, debug, debug_info, debug_warn, info, trace,
|
||||
Event, PduEvent, debug, debug_info, debug_warn, trace,
|
||||
utils::{BoolExt, IterStream, stream::BroadbandExt},
|
||||
};
|
||||
use futures::StreamExt;
|
||||
@@ -84,13 +84,12 @@ impl super::Service {
|
||||
let job_start = Instant::now();
|
||||
trace!("Starting to persist {} prev events", to_persist.len());
|
||||
for (i, event_id) in to_persist.iter().enumerate() {
|
||||
info!(
|
||||
debug!(
|
||||
elapsed=?start.elapsed(),
|
||||
"[TODO] Persisting fetched prev event: {event_id} ({}/{})",
|
||||
i.saturating_add(1),
|
||||
to_persist.len(),
|
||||
);
|
||||
debug_info!(elapsed=?start.elapsed(), "Persisting fetched prev event {event_id}");
|
||||
let obj = mapped.get(event_id).cloned().unwrap();
|
||||
let persist_start = Instant::now();
|
||||
match self
|
||||
|
||||
Reference in new issue
Block a user