Simplify Peer::do_write