Skip to content

Commit

Permalink
connector: remove BufWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini committed Aug 11, 2023
1 parent 94a01a3 commit 200ca88
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 200ca88

Please sign in to comment.