[repo] Lab relay: compile fixes after the first build (clippy, fmt); 28 unit tests pass
This commit is contained in:
@@ -60,12 +60,7 @@ fn run(args: &[String]) -> AnyResult {
|
||||
let mut threads = Vec::new();
|
||||
for spec in config.ports()? {
|
||||
let (config, rec) = (Arc::clone(&config), Arc::clone(&rec));
|
||||
println!(
|
||||
"lab-relay: {:?} {} -> {}",
|
||||
spec.protocol,
|
||||
config.listen_addr(&spec),
|
||||
config.upstream_addr(&spec)
|
||||
);
|
||||
println!("lab-relay: {:?} {} -> {}", spec.protocol, config.listen_addr(&spec), config.upstream_addr(&spec));
|
||||
threads.push(thread::spawn(move || {
|
||||
let r = match spec.transport {
|
||||
Transport::Tcp => tcp::serve(Arc::clone(&config), spec, Arc::clone(&rec)),
|
||||
|
||||
Reference in New Issue
Block a user