Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed unmutated clone #355

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/network/rpc/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

async fn create_subxt_client(&mut self, expected_version: ExpectedVersion<'_>) -> Result<()> {
// shuffle passed Nodes and start try to connect the first one
let node = self.reset_nodes()?;
let mut node = self.reset_nodes()?;

let client: OnlineClient<AvailConfig> = build_client(&node.host, false).await?;

Expand All @@ -117,8 +117,7 @@
// client was built successfully, keep it
self.set_subxt_client(client);

node.clone()
.with_spec_version(runtime_version.spec_version)
node.with_spec_version(runtime_version.spec_version)
.with_system_version(system_version.clone())
.with_genesis_hash(genesis_hash);
// connecting to the selected node was a success,
Expand Down Expand Up @@ -517,7 +516,7 @@
use hex::FromHex;
use sp_core::{
ed25519::{self, Public, Signature},
Pair, H256,

Check warning on line 519 in src/network/rpc/event_loop.rs

View workflow job for this annotation

GitHub Actions / build_and_test

unused import: `H256`
};
use test_case::test_case;

Expand Down
Loading