From: Greg Burri Date: Sun, 27 Oct 2024 10:19:29 +0000 (+0100) Subject: Update dependencies + clean up X-Git-Url: http://git.euphorik.ch/?a=commitdiff_plain;h=a3dad20faf917c8e39129a0dc8bf63b95f4b48f1;p=stakingWatchdogWatchdog.git Update dependencies + clean up --- diff --git a/Cargo.toml b/Cargo.toml index 0250280..f1da28f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,10 +8,10 @@ edition = "2021" [dependencies] anyhow = "1.0" -itertools = "0.11" +itertools = "0.13" rand = "0.8" -lettre = { version = "0.10", features = [ +lettre = { version = "0.11", features = [ "rustls-tls", "smtp-transport", "builder", diff --git a/deploy.nu b/deploy.nu index 705c62d..904b0a7 100644 --- a/deploy.nu +++ b/deploy.nu @@ -11,13 +11,13 @@ def main [host: string, destination: string, ssh_key: path] { def invoke_ssh [command: string] { let args = $ssh_args ++ $command print $"Executing: ssh ($args)" - ssh $args + ssh ...$args } def copy_ssh [source: string, destination: string] { let args = $scp_args ++ [$source $"($host):($destination)"] print $"Executing: scp ($args)" - scp $args + scp ...$args } # Don't know how to dynamically pass variable arguments. diff --git a/src/main.rs b/src/main.rs index 9944ae1..22d6648 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,7 +45,7 @@ fn main() -> Result<()> { let mut total_ping_duration = Duration::default(); let socket = UdpSocket::bind("0.0.0.0:0").unwrap(); - socket.connect("192.168.2.102:8739").unwrap(); + socket.connect(config.staking_address).unwrap(); socket.set_nonblocking(false).unwrap(); socket.set_read_timeout(Some(SOCKET_TIMEOUT)).unwrap(); socket.set_write_timeout(Some(SOCKET_TIMEOUT)).unwrap();