working perfectly well with the search and debug in the status line when enabled

This commit is contained in:
filipriec
2025-06-13 20:46:33 +02:00
parent b8e6cc22af
commit 2ac96a8486
2 changed files with 3 additions and 4 deletions

View File

@@ -191,7 +191,6 @@ impl EventHandler {
info!("--- 1. Spawning search task for query: '{}' ---", query);
// We now move the grpc_client into the task, just like with login.
tokio::spawn(async move {
info!("--- 2. Background task started. ---");
match grpc_client.search_table(table_name, query).await {
Ok(response) => {
@@ -199,7 +198,8 @@ impl EventHandler {
let _ = sender.send(response.hits);
}
Err(e) => {
error!("--- 3b. gRPC call failed: {} ---", e);
// THE FIX: Use the debug formatter `{:?}` to print the full error chain.
error!("--- 3b. gRPC call failed: {:?} ---", e);
let _ = sender.send(vec![]);
}
}

View File

@@ -206,8 +206,7 @@ impl GrpcClient {
let response = self
.search_client
.search_table(request)
.await
.context("gRPC SearchTable call failed")?;
.await?;
Ok(response.into_inner())
}
}