Skip to content

Commit

Permalink
chore: restore copypasta context on joinerror
Browse files Browse the repository at this point in the history
  • Loading branch information
Joonas Koivunen committed Jun 9, 2022
1 parent 25fbd19 commit d237ae0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/pathfinder/src/rpc/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ impl RpcApi {
Ok(Block::from_raw(block, transactions))
})
.await
.context("Database read panic or shutting down")
.map_err(internal_server_error)
.and_then(|x| x)
}
Expand Down Expand Up @@ -248,6 +249,7 @@ impl RpcApi {
Ok(Block::from_raw(block, transactions))
})
.await
.context("Database read panic or shutting down")
.map_err(internal_server_error)
.and_then(|x| x)
}
Expand Down

0 comments on commit d237ae0

Please sign in to comment.