Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: format

Anshgrover235c90dfc67f33
diff --git a/crates/screenpipe-engine/src/event_driven_capture.rs b/crates/screenpipe-engine/src/event_driven_capture.rs
index 454b9fc41..99f422c9f 100644
--- a/crates/screenpipe-engine/src/event_driven_capture.rs
+++ b/crates/screenpipe-engine/src/event_driven_capture.rs
@@ -937,9 +937,7 @@ pub async fn event_driven_capture_loop(
// so link them to that frame — semantically correct
// and prevents the correlation_ids from expiring unmatched.
if !correlation_ids.is_empty() {
- if let (Some(ref linker), Some(fid)) =
- (&linker_tx, last_frame_id)
- {
+ if let (Some(ref linker), Some(fid)) = (&linker_tx, last_frame_id) {
let _ = linker.try_send(
crate::frame_linker_actor::LinkerMessage::FrameCaptured(
crate::frame_linker::FrameCaptured {
diff --git a/crates/screenpipe-engine/src/frame_linker_actor.rs b/crates/screenpipe-engine/src/frame_linker_actor.rs
index 6e9357f5f..6196c1943 100644
--- a/crates/screenpipe-engine/src/frame_linker_actor.rs
+++ b/crates/screenpipe-engine/src/frame_linker_actor.rs
@@ -203,20 +203,21 @@ async fn apply_update(db: &Arc<DatabaseManager>, row_id: i64, frame_id: i64) {
debug!(row_id, frame_id, "frame_linker: ui_events.frame_id updated");
}
Err(e) => {
- UPDATES_FAILED.fetch_add(1, Ordering::Relaxed);
- // A failed UPDATE is recoverable in principle (the row stays
- // NULL) but very rare in practice — log and move on. We don't
- // retry because the linker has no memory of dispatched updates;
- // a retry would have to re-pair from scratch.
- warn!(
+ UPDATES_FAILED.fetch_add(1, Ordering::Relaxed);
+ // A failed UPDATE is recoverable in principle (the row stays
+ // NULL) but very rare in practice — log and move on. We don't
+ // retry because the linker has no memory of dispatched updates;
+ // a retry would have to re-pair from scratch.
+ warn!(
row_id,
frame_id,
error = %e,
"frame_linker: UPDATE ui_events.frame_id failed"
- );
- }
+ );
+ }
}
}
+}
#[cfg(test)]
mod tests {