Skip to content

Commit

Permalink
Make cargo fmt happy
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Ness <[email protected]>
  • Loading branch information
erikness-doordash committed Oct 19, 2023
1 parent 123548e commit 81585d2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,7 @@ impl Dispatcher {

fn on_grpc_receive_initial_metadata(&self, token_id: u32, headers: u32) {
let grpc_streams_ref = self.grpc_streams.borrow_mut();
let context_id_hash_slot = grpc_streams_ref
.get(&token_id);
let context_id_hash_slot = grpc_streams_ref.get(&token_id);
let context_id = match context_id_hash_slot {
Some(id) => *id,
None => {
Expand Down Expand Up @@ -492,8 +491,7 @@ impl Dispatcher {

fn on_grpc_receive_trailing_metadata(&self, token_id: u32, trailers: u32) {
let grpc_streams_ref = self.grpc_streams.borrow_mut();
let context_id_hash_slot = grpc_streams_ref
.get(&token_id);
let context_id_hash_slot = grpc_streams_ref.get(&token_id);
let context_id = match context_id_hash_slot {
Some(id) => *id,
None => {
Expand Down

0 comments on commit 81585d2

Please sign in to comment.