Add Sync bound to Rpc::ClientError

This commit is contained in:
Andrew Jones
2022-11-15 10:38:33 +00:00
parent 313d23b349
commit 1d5674ee51
+1 -1
View File
@@ -112,7 +112,7 @@ pub enum RpcError {
// Dev note: We need the error to be safely sent between threads
// for `subscribe_to_block_headers_filling_in_gaps` and friends.
/// Error related to the RPC client.
ClientError(Box<dyn std::error::Error + Send + 'static>),
ClientError(Box<dyn std::error::Error + Send + Sync + 'static>),
/// The RPC subscription dropped.
SubscriptionDropped,
}