add Sync trait to middleware error (#94)

This commit is contained in:
Rohit Narurkar 2020-10-31 16:09:03 +05:30 committed by GitHub
parent d67efc9190
commit 98c63f9a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ pub trait FromErr<T> {
#[async_trait]
pub trait Middleware: Sync + Send + Debug {
type Error: Send + Error + FromErr<<Self::Inner as Middleware>::Error>;
type Error: Sync + Send + Error + FromErr<<Self::Inner as Middleware>::Error>;
type Provider: JsonRpcClient;
type Inner: Middleware<Provider = Self::Provider>;