examples: adjust buffering in examples (#3328)

This commit is contained in:
AJ Frantz
2020-12-27 10:43:02 +01:00
committed by GitHub
parent 4d7b73f5b3
commit c4929264bc
4 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
// which will allow all of our clients to be processed concurrently.
tokio::spawn(async move {
let mut buf = [0; 1024];
let mut buf = vec![0; 1024];
// In a loop, read data from the socket and write the data back.
loop {