fmt: cargo fmt sweep across drifted files
No behavior change — purely whitespace/line-break cleanup that had accumulated since the last format run. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -79,10 +79,7 @@ pub trait DailySummaryDao: Sync + Send {
|
||||
/// Cheap presence check — returns true iff at least one daily summary row
|
||||
/// exists. Used by gating logic that only needs "is the table empty?",
|
||||
/// avoiding a `COUNT(*)` full scan on large corpora.
|
||||
fn has_any_summaries(
|
||||
&mut self,
|
||||
context: &opentelemetry::Context,
|
||||
) -> Result<bool, DbError>;
|
||||
fn has_any_summaries(&mut self, context: &opentelemetry::Context) -> Result<bool, DbError>;
|
||||
}
|
||||
|
||||
pub struct SqliteDailySummaryDao {
|
||||
@@ -477,11 +474,10 @@ impl DailySummaryDao for SqliteDailySummaryDao {
|
||||
one: i32,
|
||||
}
|
||||
|
||||
let rows: Vec<ProbeResult> = diesel::sql_query(
|
||||
"SELECT 1 as one FROM daily_conversation_summaries LIMIT 1",
|
||||
)
|
||||
.load(conn.deref_mut())
|
||||
.map_err(|e| anyhow::anyhow!("Failed to probe daily summaries: {}", e))?;
|
||||
let rows: Vec<ProbeResult> =
|
||||
diesel::sql_query("SELECT 1 as one FROM daily_conversation_summaries LIMIT 1")
|
||||
.load(conn.deref_mut())
|
||||
.map_err(|e| anyhow::anyhow!("Failed to probe daily summaries: {}", e))?;
|
||||
|
||||
Ok(!rows.is_empty())
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user