mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
fix(net): preserve ECIESError in connect_without_timeout (#19558)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -67,8 +67,7 @@ where
|
||||
secret_key: SecretKey,
|
||||
remote_id: PeerId,
|
||||
) -> Result<Self, ECIESError> {
|
||||
let ecies = ECIESCodec::new_client(secret_key, remote_id)
|
||||
.map_err(|_| io::Error::other("invalid handshake"))?;
|
||||
let ecies = ECIESCodec::new_client(secret_key, remote_id)?;
|
||||
|
||||
let mut transport = ecies.framed(transport);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user