Skip to content

Commit

Permalink
storage: remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Dec 4, 2023
1 parent 7c50f5a commit d44c8f5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/storage/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ impl QueryService for Server {
request: tonic::Request<PrefixValueRequest>,
) -> Result<tonic::Response<Self::PrefixValueStream>, Status> {
let state = self.storage.latest_snapshot();
// state
// .check_chain_id(&request.get_ref().chain_id)
// .await
// .map_err(|e| tonic::Status::unknown(format!("chain_id not OK: {e}")))?;
let request = request.into_inner();
tracing::debug!(?request);

Expand All @@ -104,8 +100,6 @@ impl QueryService for Server {
"error getting prefix value from storage: {e}"
))
})
// TODO: how do we instrument a Stream
//.instrument(Span::current())
.boxed(),
))
}
Expand Down

0 comments on commit d44c8f5

Please sign in to comment.