[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",
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.
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();