Skip to content

Commit 5fd8253

Browse files
fix: remove unused imports and fix variable prefixes
1 parent e5aca8d commit 5fd8253

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

src/utils/nodes.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,11 @@ pub async fn deploy_node(
523523
node_name: name.to_string(),
524524
rpc_url: None, // Will be set by the deployment process
525525
additional_params: HashMap::new(),
526+
version: None,
527+
client_type: None,
528+
hot_swap_enabled: false,
529+
metrics_config: None,
530+
disk_config: None,
526531
};
527532

528533
// Deploy the node
@@ -1247,10 +1252,10 @@ impl SshClientExt for crate::utils::ssh_deploy::SshClient {
12471252
let output = self.execute_command(command)?;
12481253

12491254
// Process each line of the output
1250-
let mut continue_processing = true;
1255+
let mut _continue_processing = true;
12511256
for line in output.lines() {
1252-
continue_processing = callback(line);
1253-
if !continue_processing {
1257+
_continue_processing = callback(line);
1258+
if !_continue_processing {
12541259
break;
12551260
}
12561261
}

src/utils/ssh_deploy/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use {
88
ssh2::Session,
99
std::{
1010
fs,
11-
io::{self, Read, Write},
11+
io::{Read, Write},
1212
path::Path,
1313
},
1414
};

src/utils/ssh_deploy/deployments/solana.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::utils::ssh_deploy::{
1111
await_service_startup, create_binary_service_content, create_systemd_service,
1212
enable_and_start_service,
1313
},
14-
types::{DeploymentConfig, DiskConfig, NetworkType, ServerConfig},
14+
types::{DeploymentConfig, NetworkType, ServerConfig},
1515
};
1616

1717
/// Deploy Solana node with enhanced features from Validator Jumpstart
@@ -183,7 +183,7 @@ fn install_solana_cli(
183183
}
184184
Some("agave") => {
185185
// Install Agave client
186-
let agave_version = if version.contains("agave") {
186+
let _agave_version = if version.contains("agave") {
187187
version.to_string()
188188
} else {
189189
format!("{}-agave", version)

src/utils/ssh_deploy/disk_management.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ fn format_and_mount_disk(
8080
}
8181

8282
// Format the disk (with confirmation to avoid data loss)
83-
let confirmation =
83+
let _confirmation =
8484
client.execute_command(&format!("echo \"y\" | sudo mkfs -t ext4 {}", disk))?;
8585

8686
// Mount the disk
8787
client.execute_command(&format!("sudo mount {} {}", disk, mount_point))?;
8888

8989
// Add to fstab for persistence across reboots
9090
let fstab_entry = format!("{} {} ext4 defaults,noatime 0 2", disk, mount_point);
91-
let fstab_check = client.execute_command(&format!(
91+
let _fstab_check = client.execute_command(&format!(
9292
"grep -q '{}' /etc/fstab || echo '{}' | sudo tee -a /etc/fstab",
9393
disk, fstab_entry
9494
))?;

src/utils/ssh_deploy/hot_swap.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
//! Hot-swap capability for Solana validators
22
3-
use {
4-
crate::utils::ssh_deploy::{client::SshClient, errors::DeploymentError},
5-
std::path::Path,
6-
};
3+
use crate::utils::ssh_deploy::{client::SshClient, errors::DeploymentError};
74

85
/// Configure hot-swap capability for Solana validator
96
///

src/utils/ssh_deploy/services.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use {
44
crate::utils::ssh_deploy::{client::SshClient, errors::DeploymentError},
5-
std::{fs, io::Write, path::Path, time::Duration},
5+
std::{fs, io::Write, time::Duration},
66
tokio::time,
77
};
88

0 commit comments

Comments
 (0)