mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-03-01 15:03:21 -08:00
Cargo fmt fix
This commit is contained in:
@@ -507,7 +507,7 @@ impl AppServer {
|
|||||||
non_blocking_polls_count: 0,
|
non_blocking_polls_count: 0,
|
||||||
unpolled_count: 0,
|
unpolled_count: 0,
|
||||||
last_update_time: Instant::now(),
|
last_update_time: Instant::now(),
|
||||||
test_flags
|
test_flags,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ use rosenpass_secret_memory::file::StoreSecret;
|
|||||||
use rosenpass_util::file::{LoadValue, LoadValueB64};
|
use rosenpass_util::file::{LoadValue, LoadValueB64};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
|
||||||
use crate::app_server::{self, AppServerTestFlags};
|
|
||||||
use crate::app_server::AppServer;
|
use crate::app_server::AppServer;
|
||||||
|
use crate::app_server::{self, AppServerTestFlags};
|
||||||
use crate::protocol::{SPk, SSk, SymKey};
|
use crate::protocol::{SPk, SSk, SymKey};
|
||||||
|
|
||||||
use super::config;
|
use super::config;
|
||||||
@@ -307,7 +307,7 @@ impl CliCommand {
|
|||||||
pk,
|
pk,
|
||||||
config.listen,
|
config.listen,
|
||||||
config.verbosity,
|
config.verbosity,
|
||||||
test_flags
|
test_flags,
|
||||||
)?);
|
)?);
|
||||||
|
|
||||||
for cfg_peer in config.peers {
|
for cfg_peer in config.peers {
|
||||||
|
|||||||
@@ -166,7 +166,8 @@ fn check_exchange_under_dos() {
|
|||||||
|
|
||||||
let mut server_cmd = std::process::Command::new(BIN);
|
let mut server_cmd = std::process::Command::new(BIN);
|
||||||
|
|
||||||
server_cmd.args(["exchange", "secret-key"])
|
server_cmd
|
||||||
|
.args(["exchange", "secret-key"])
|
||||||
.arg(&secret_key_paths[0])
|
.arg(&secret_key_paths[0])
|
||||||
.arg("public-key")
|
.arg("public-key")
|
||||||
.arg(&public_key_paths[0])
|
.arg(&public_key_paths[0])
|
||||||
@@ -175,8 +176,8 @@ fn check_exchange_under_dos() {
|
|||||||
.arg("outfile")
|
.arg("outfile")
|
||||||
.arg(&shared_key_paths[0]);
|
.arg(&shared_key_paths[0]);
|
||||||
|
|
||||||
|
let server_cmd: Vec<String> =
|
||||||
let server_cmd: Vec<String> = server_cmd
|
server_cmd
|
||||||
.get_args()
|
.get_args()
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.fold(vec![BIN.to_string()], |mut acc, x| {
|
.fold(vec![BIN.to_string()], |mut acc, x| {
|
||||||
@@ -188,9 +189,11 @@ fn check_exchange_under_dos() {
|
|||||||
|
|
||||||
let mut server = procspawn::spawn(server_cmd, |server_cmd: Vec<String>| {
|
let mut server = procspawn::spawn(server_cmd, |server_cmd: Vec<String>| {
|
||||||
let cli = CliArgs::try_parse_from(server_cmd.iter()).unwrap();
|
let cli = CliArgs::try_parse_from(server_cmd.iter()).unwrap();
|
||||||
cli.command.run(AppServerTestFlags {
|
cli.command
|
||||||
|
.run(AppServerTestFlags {
|
||||||
enable_dos_permanently: true,
|
enable_dos_permanently: true,
|
||||||
}).unwrap();
|
})
|
||||||
|
.unwrap();
|
||||||
});
|
});
|
||||||
|
|
||||||
// start second process, the client
|
// start second process, the client
|
||||||
|
|||||||
Reference in New Issue
Block a user