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: remove unused imports and variable from realtime cleanup

Louis Beaumont03f819e794e7
diff --git a/crates/screenpipe-audio/src/audio_manager/manager.rs b/crates/screenpipe-audio/src/audio_manager/manager.rs
index dc3c58438..b2327bdc7 100644
--- a/crates/screenpipe-audio/src/audio_manager/manager.rs
+++ b/crates/screenpipe-audio/src/audio_manager/manager.rs
@@ -14,7 +14,6 @@ use std::{
time::Duration,
};
use tokio::{
- join,
sync::{Mutex, RwLock},
task::JoinHandle,
};
@@ -364,7 +363,6 @@ impl AudioManager {
let audio_chunk_duration = options.audio_chunk_duration;
let recording_sender = self.recording_sender.clone();
let is_running = self.device_manager.is_running_mut(device).unwrap();
- let languages = options.languages.clone();
let device_clone = device.clone();
let metrics = self.metrics.clone();
diff --git a/crates/screenpipe-audio/src/core/mod.rs b/crates/screenpipe-audio/src/core/mod.rs
index ecf91f4bf..1005de09f 100644
--- a/crates/screenpipe-audio/src/core/mod.rs
+++ b/crates/screenpipe-audio/src/core/mod.rs
@@ -12,12 +12,11 @@ use crate::AudioInput;
use anyhow::Result;
use dashmap::DashMap;
use lazy_static::lazy_static;
-use screenpipe_core::Language;
use std::sync::atomic::{AtomicBool, AtomicU64, Ordering};
use std::sync::Arc;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use stream::AudioStream;
-use tracing::{debug, error};
+use tracing::debug;
lazy_static! {
// Global fallback timestamp for backward compatibility