diff --git a/src/ray/common/client_connection.cc b/src/ray/common/client_connection.cc index 8767a3274512..e572e622a4dc 100644 --- a/src/ray/common/client_connection.cc +++ b/src/ray/common/client_connection.cc @@ -289,7 +289,6 @@ void ServerConnection::WriteMessageAsync( write_buffer->write_cookie = RayConfig::instance().ray_cookie(); write_buffer->write_type = type; write_buffer->write_length = length; - write_buffer->write_message.resize(length); write_buffer->write_message.assign(message, message + length); write_buffer->handler = handler;