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 {
|
let res = Response {
|
||||||
// Get the statement end time
|
// Get the statement end time
|
||||||
time: now.elapsed(),
|
time: now.elapsed(),
|
||||||
// TODO: Replace with `inspect_err` once stable.
|
result: res.inspect_err(|_| {
|
||||||
result: res.map_err(|e| {
|
|
||||||
// Mark the error.
|
// Mark the error.
|
||||||
self.err = true;
|
self.err = true;
|
||||||
e
|
|
||||||
}),
|
}),
|
||||||
query_type: match (is_stm_live, is_stm_kill) {
|
query_type: match (is_stm_live, is_stm_kill) {
|
||||||
(true, _) => QueryType::Live,
|
(true, _) => QueryType::Live,
|
||||||
|
|
Loading…
Reference in a new issue