Skip to content

Commit

Permalink
Add Send bound to interceptors
Browse files Browse the repository at this point in the history
  • Loading branch information
aDogCalledSpot committed Mar 7, 2024
1 parent f1133ad commit d33184b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/clients.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ enum AuthType {
/// stays the same and is not dependent on the authentication type used.
/// The builder can always return `Client<InterceptedService<Channel, ChainedInterceptor>>`.
pub struct ChainedInterceptor {
interceptors: Vec<Box<dyn Interceptor>>,
interceptors: Vec<Box<dyn Interceptor + Send>>,
}

impl ChainedInterceptor {
Expand All @@ -56,7 +56,7 @@ impl ChainedInterceptor {
}
}

pub(crate) fn add_interceptor(mut self, interceptor: Box<dyn Interceptor>) -> Self {
pub(crate) fn add_interceptor(mut self, interceptor: Box<dyn Interceptor + Send>) -> Self {
self.interceptors.push(interceptor);
self
}
Expand Down

0 comments on commit d33184b

Please sign in to comment.