Skip to content

Commit

Permalink
Allow to duplicate GrpcMethod extensions (#1425)
Browse files Browse the repository at this point in the history
This is required for (manually) cloning requests, which in turn is
required for middlewares that retries requests on demand.
  • Loading branch information
weiznich authored Aug 2, 2023
1 parent 58d1c28 commit e1bac2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic/src/extensions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl fmt::Debug for Extensions {
}

/// A gRPC Method info extension.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct GrpcMethod {
service: &'static str,
method: &'static str,
Expand Down

0 comments on commit e1bac2b

Please sign in to comment.