Skip to content

Commit

Permalink
Issue #4 : remove unneeded commit on tx_buff
Browse files Browse the repository at this point in the history
  • Loading branch information
basiliscos committed Jan 25, 2018
1 parent a628464 commit 6e6a7da
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/bredis/impl/connection.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ Connection<NextLayer>::async_write(DynamicBuffer &tx_buff,
std::ostream os(&tx_buff);
auto string = boost::apply_visitor(command_serializer_visitor(), command);
os.write(string.c_str(), string.size());
tx_buff.commit(string.size());

real_handler_t handler(std::forward<WriteCallback>(write_callback));
return async_write(stream_, tx_buff, handler);
Expand Down

0 comments on commit 6e6a7da

Please sign in to comment.