fix: add missing warn import, cast f64 similarity to f32

This commit is contained in:
Agent Zero
2026-04-04 09:47:10 +00:00
parent 8d0f944513
commit e181dad8c7
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ use std::sync::Arc;
use tokio::net::TcpListener;
use tower_http::cors::{Any, CorsLayer};
use tower_http::trace::TraceLayer;
use tracing::{error, info};
use tracing::{error, info, warn};
use crate::auth::auth_middleware;
use crate::config::Config;

View File

@@ -7,7 +7,7 @@
use std::sync::Arc;
use anyhow::Result;
use tracing::{debug, error, info, warn};
use tracing::{debug, info, warn};
use crate::config::TruthConfig;
use crate::db::{Database, TruthScoreUpdate};
@@ -78,7 +78,7 @@ pub async fn run_scoring_cycle(
let related: Vec<RelatedMemory> = related_rows
.into_iter()
.map(|row| RelatedMemory {
similarity: row.similarity,
similarity: row.similarity as f32,
content: row.content,
truth_value: row.truth_value,
truth_confidence: row.truth_confidence,