diff --git a/include/bredis/impl/connection.ipp b/include/bredis/impl/connection.ipp index e85604d1..23bd301a 100644 --- a/include/bredis/impl/connection.ipp +++ b/include/bredis/impl/connection.ipp @@ -33,7 +33,6 @@ Connection::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(write_callback)); return async_write(stream_, tx_buff, handler);