Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
TEAS-577 [fix] require sync
Browse files Browse the repository at this point in the history
  • Loading branch information
untoldwind committed Dec 5, 2018
1 parent db758a2 commit 5019243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service_requester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn encode_url_component<S: AsRef<[u8]>>(value: S) -> String {
#[derive(Clone)]
pub struct ServiceRequester {
token_creator: Addr<gatekeeper::TokenCreator>,
error_handler: &'static Fn(client::ClientResponse) -> Problem,
error_handler: &'static (Fn(client::ClientResponse) -> Problem + Sync),
}

pub trait IntoClientRequest {
Expand All @@ -30,7 +30,7 @@ impl ServiceRequester {
}
}

pub fn with_error_handler(&self, error_handler: &'static Fn(client::ClientResponse) -> Problem) -> Self {
pub fn with_error_handler(&self, error_handler: &'static (Fn(client::ClientResponse) -> Problem + Sync)) -> Self {
ServiceRequester {
token_creator: self.token_creator.clone(),
error_handler,
Expand Down

0 comments on commit 5019243

Please sign in to comment.