working perfectly well with the search and debug in the status line when enabled
This commit is contained in:
@@ -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![]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user