From 4215aa7f8918c93d6b430fc02048973bae3cc82c Mon Sep 17 00:00:00 2001 From: Amnon Hanuhov Date: Tue, 13 Apr 2021 14:45:37 +0300 Subject: [PATCH] crimson/mon: Use crimson::net::make_message() in MonClient Signed-off-by: Amnon Hanuhov --- src/crimson/mon/MonClient.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crimson/mon/MonClient.cc b/src/crimson/mon/MonClient.cc index 08c34debc44b8..bfb8089ad2829 100644 --- a/src/crimson/mon/MonClient.cc +++ b/src/crimson/mon/MonClient.cc @@ -202,7 +202,7 @@ Connection::create_auth(crimson::auth::method_t protocol, seastar::future> Connection::do_auth_single(Connection::request_t what) { - auto m = make_message(); + auto m = crimson::net::make_message(); m->protocol = auth->get_protocol(); auth->prepare_build_request(); switch (what) { @@ -220,7 +220,7 @@ Connection::do_auth_single(Connection::request_t what) assert(0); } logger().info("sending {}", *m); - return conn->send(m).then([this] { + return conn->send(std::move(m)).then([this] { logger().info("waiting"); return reply.get_shared_future(); }).then([this] (Ref m) { @@ -265,7 +265,7 @@ Connection::do_auth(Connection::request_t what) { seastar::future Connection::authenticate_v2() { auth_start = seastar::lowres_system_clock::now(); - return conn->send(make_message()).then([this] { + return conn->send(crimson::net::make_message()).then([this] { auth_done.emplace(); return auth_done->get_future(); }); -- 2.39.5