feat(node): remove unnecessary ConnWrapper clone in connect() (#19456)

This commit is contained in:
Forostovec
2025-11-18 20:07:07 +02:00
committed by GitHub
parent 9dc6e256a9
commit 4836062d7b

View File

@@ -118,7 +118,7 @@ where
"Successfully connected to EthStats server at {}", self.credentials.host
);
let conn: ConnWrapper = ConnWrapper::new(ws_stream);
*self.conn.write().await = Some(conn.clone());
*self.conn.write().await = Some(conn);
self.login().await?;
Ok(())
}