|
@@ -226,7 +226,7 @@ async fn async_main(opts: Arc<Opts>) -> ah::Result<()> {
|
|
|
let conn = Arc::clone(&conn);
|
|
|
task::spawn(async move {
|
|
|
let conf = conf.read().await;
|
|
|
- let mut proto = Protocol::new(&conn, &conf, &opts.rundir);
|
|
|
+ let mut proto = Protocol::new(&*conn, &conf, &opts.rundir);
|
|
|
if let Err(e) = proto.run().await {
|
|
|
eprintln!("Client '{}' ERROR: {}", proto.peer_addr().ip(), e);
|
|
|
}
|