Skip to content

Commit

Permalink
protocol: Pipeline no longer needs query count
Browse files Browse the repository at this point in the history
  • Loading branch information
ohsayan committed Apr 4, 2024
1 parent c115fa1 commit d3c0b90
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions src/io/aio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,6 @@ impl<C: AsyncWriteExt + AsyncReadExt + Unpin> TcpConnection<C> {
pub async fn execute_pipeline(&mut self, pipeline: &Pipeline) -> ClientResult<Vec<Response>> {
self.buf.clear();
self.buf.push(b'P');
// query count
self.buf.extend(
itoa::Buffer::new()
.format(pipeline.query_count())
.as_bytes(),
);
self.buf.push(b'\n');
// packet size
self.buf
.extend(itoa::Buffer::new().format(pipeline.buf().len()).as_bytes());
Expand Down
7 changes: 0 additions & 7 deletions src/io/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,6 @@ impl<C: Write + Read> TcpConnection<C> {
pub fn execute_pipeline(&mut self, pipeline: &Pipeline) -> ClientResult<Vec<Response>> {
self.buf.clear();
self.buf.push(b'P');
// query count
self.buf.extend(
itoa::Buffer::new()
.format(pipeline.query_count())
.as_bytes(),
);
self.buf.push(b'\n');
// packet size
self.buf
.extend(itoa::Buffer::new().format(pipeline.buf().len()).as_bytes());
Expand Down

0 comments on commit d3c0b90

Please sign in to comment.