]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/monc: replace then_unpack() with discard_result() if possible 47285/head
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 26 Jul 2022 16:24:12 +0000 (16:24 +0000)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Tue, 26 Jul 2022 16:24:23 +0000 (16:24 +0000)
More understandable this way.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/crimson/mon/MonClient.cc

index 263228c1571ccecaeebe86d8579bd624681a7040..f2e7f83eb3d6448e69221fa863220f361fbd979a 100644 (file)
@@ -472,7 +472,7 @@ void Client::tick()
       return seastar::when_all_succeed(wait_for_send_log(),
                                        active_con->get_conn()->keepalive(),
                                        active_con->renew_tickets(),
-                                       active_con->renew_rotating_keyring()).then_unpack([] {});
+                                       active_con->renew_rotating_keyring()).discard_result();
     } else {
       assert(is_hunting());
       logger().info("{} continuing the hunt", __func__);
@@ -794,7 +794,7 @@ seastar::future<> Client::handle_monmap(crimson::net::ConnectionRef conn,
       logger().info("handle_monmap: renewing tickets");
       return seastar::when_all_succeed(
        active_con->renew_tickets(),
-       active_con->renew_rotating_keyring()).then_unpack([](){
+       active_con->renew_rotating_keyring()).then_unpack([] {
          logger().info("handle_mon_map: renewed tickets");
        });
     } else {
@@ -829,7 +829,7 @@ seastar::future<> Client::handle_auth_reply(crimson::net::ConnectionRef conn,
     return active_con->handle_auth_reply(m).then([this] {
       return seastar::when_all_succeed(
         active_con->renew_rotating_keyring(),
-        active_con->renew_tickets()).then_unpack([] {});
+        active_con->renew_tickets()).discard_result();
     });
   } else {
     logger().error("unknown auth reply from {}", conn->get_peer_addr());