resolved a TODO: map_err to inspect error (#4271)
Co-authored-by: Tobie Morgan Hitchcock <tobie@surrealdb.com>
This commit is contained in:
parent
febca6464a
commit
6a5dca9214
1 changed files with 1 additions and 3 deletions
|
@ -426,11 +426,9 @@ impl<'a> Executor<'a> {
|
|||
let res = Response {
|
||||
// Get the statement end time
|
||||
time: now.elapsed(),
|
||||
// TODO: Replace with `inspect_err` once stable.
|
||||
result: res.map_err(|e| {
|
||||
result: res.inspect_err(|_| {
|
||||
// Mark the error.
|
||||
self.err = true;
|
||||
e
|
||||
}),
|
||||
query_type: match (is_stm_live, is_stm_kill) {
|
||||
(true, _) => QueryType::Live,
|
||||
|
|
Loading…
Reference in a new issue