Skip to content

Commit

Permalink
Remove BufWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini authored and Jarema committed Sep 19, 2023
1 parent 215c18f commit fe79b4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions async-nats/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ use std::io;
use std::path::PathBuf;
use std::sync::Arc;
use std::time::Duration;
use tokio::io::BufWriter;
use tokio::io::ErrorKind;
use tokio::net::TcpStream;
use tokio::time::sleep;
Expand Down Expand Up @@ -296,7 +295,7 @@ impl Connector {
tcp_stream.set_nodelay(true)?;

let mut connection = Connection::new(
Box::new(BufWriter::new(tcp_stream)),
Box::new(tcp_stream),
self.options.read_buffer_capacity.into(),
);

Expand Down

0 comments on commit fe79b4d

Please sign in to comment.