From 92f1e87fa74db94f7ac47ba66aa72ab6b4e7055e Mon Sep 17 00:00:00 2001 From: "Demi M. Obenour" Date: Thu, 24 Sep 2020 17:21:51 +0100 Subject: [PATCH] Remove unnecessary Sync requirements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is needed for Ledgeracio, as Ledgeracio’s signer is now no longer `Send`. --- src/extrinsic/signer.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/extrinsic/signer.rs b/src/extrinsic/signer.rs index efda6578d6..d5e5d2145f 100644 --- a/src/extrinsic/signer.rs +++ b/src/extrinsic/signer.rs @@ -50,7 +50,7 @@ pub trait Signer { fn sign( &self, extrinsic: SignedPayload, - ) -> Pin, String>> + Send + Sync>>; + ) -> Pin, String>> + Send>>; } /// Extrinsic signer using a private key. @@ -100,8 +100,7 @@ impl Signer for PairSigner where T: Runtime, T::AccountId: Into + 'static, - <>::Extra as SignedExtension>::AdditionalSigned: - Send + Sync, + <>::Extra as SignedExtension>::AdditionalSigned: Send, P: Pair + 'static, P::Signature: Into + 'static, { @@ -116,8 +115,7 @@ where fn sign( &self, extrinsic: SignedPayload, - ) -> Pin, String>> + Send + Sync>> - { + ) -> Pin, String>> + Send>> { let signature = extrinsic.using_encoded(|payload| self.signer.sign(payload)); let (call, extra, _) = extrinsic.deconstruct(); let extrinsic = UncheckedExtrinsic::::new_signed(