mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 20:45:29 +00:00
Code cleanup
This commit is contained in:
parent
bf09e83d53
commit
9e039177df
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ use {
|
||||||
std::{
|
std::{
|
||||||
error::Error,
|
error::Error,
|
||||||
fs::File,
|
fs::File,
|
||||||
io::{BufReader, self},
|
io::BufReader,
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
@ -50,7 +50,7 @@ fn main() -> Result {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn connection(acceptor: TlsAcceptor, stream: TcpStream) -> io::Result<()> {
|
async fn connection(acceptor: TlsAcceptor, stream: TcpStream) -> Result {
|
||||||
let stream = acceptor.accept(stream).await?;
|
let stream = acceptor.accept(stream).await?;
|
||||||
|
|
||||||
let mut stream = async_std::io::BufReader::new(stream);
|
let mut stream = async_std::io::BufReader::new(stream);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue