From f2f1dab5ea7ac66757b85e88ddd5cc9846e5640c Mon Sep 17 00:00:00 2001 From: behzad nouri Date: Thu, 8 Jun 2023 16:46:22 +0000 Subject: [PATCH] patches QuicConnectionManager::new_connection_config (#32031) QuicConnectionManager::new_connection_config is returning an invalid new QuicConfig instead of the value it is initialized with. --- quic-client/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quic-client/src/lib.rs b/quic-client/src/lib.rs index 062b6bc82b..65f2444e6d 100644 --- a/quic-client/src/lib.rs +++ b/quic-client/src/lib.rs @@ -79,6 +79,7 @@ impl ConnectionPool for QuicPool { } } +#[derive(Clone)] pub struct QuicConfig { client_certificate: Arc, maybe_staked_nodes: Option>>, @@ -204,7 +205,7 @@ impl ConnectionManager for QuicConnectionManager { } fn new_connection_config(&self) -> QuicConfig { - QuicConfig::new().unwrap() + self.connection_config.clone() } }