From fa19ba99e99ede13ce2e36077c6f44986bfe940e Mon Sep 17 00:00:00 2001 From: eitanm-starkware Date: Mon, 22 Jul 2024 16:54:22 +0300 Subject: [PATCH] fix(network): remove TryFrom for response from server payload --- crates/papyrus_network/src/network_manager/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/papyrus_network/src/network_manager/mod.rs b/crates/papyrus_network/src/network_manager/mod.rs index 4c05a60661..fa1d5a8ac6 100644 --- a/crates/papyrus_network/src/network_manager/mod.rs +++ b/crates/papyrus_network/src/network_manager/mod.rs @@ -639,10 +639,10 @@ pub struct SqmrClientPayload> { pub type SqmrClientSender = GenericSender>; -pub struct SqmrServerPayload> { - pub query: Query, +pub struct SqmrServerPayload, Response> { + pub query: Result>::Error>, pub report_sender: ReportSender, - pub responses_sender: ResponsesSender, + pub responses_sender: GenericSender, } // TODO(shahak): Return this type in register_sqmr_protocol_server @@ -681,7 +681,7 @@ where } } -impl> From +impl, Response> From for SqmrServerPayload { fn from(_payload: SqmrServerPayloadForNetwork) -> Self {