1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-26 17:27:42 +02:00

update tokio-uring to 0.3 (#448)

This commit is contained in:
Rob Ede
2022-03-08 23:42:52 +00:00
committed by GitHub
parent c5d6174cec
commit 3e132d2bc6
8 changed files with 31 additions and 18 deletions

View File

@ -39,8 +39,10 @@ async fn run() -> io::Result<()> {
// wait for next line
match framed.next().await {
Some(Ok(line)) => {
match File::open(line).await {
match File::open(&line).await {
Ok(mut file) => {
tracing::info!("reading file: {}", &line);
// read file into String buffer
let mut buf = String::new();
file.read_to_string(&mut buf).await?;