From 0fb7bc6cbe9cb73fb1aa99adc254f5611884d33f Mon Sep 17 00:00:00 2001 From: alesapin Date: Mon, 1 Feb 2021 15:10:55 +0300 Subject: [PATCH] clang-tidy is very smart --- src/Coordination/NuKeeperServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Coordination/NuKeeperServer.cpp b/src/Coordination/NuKeeperServer.cpp index 014b2761f37..99af40154ca 100644 --- a/src/Coordination/NuKeeperServer.cpp +++ b/src/Coordination/NuKeeperServer.cpp @@ -31,7 +31,7 @@ NuKeeperServer::NuKeeperServer(int server_id_, const std::string & hostname_, in void NuKeeperServer::addServer(int server_id_, const std::string & server_uri_, bool can_become_leader_, int32_t priority) { - nuraft::srv_config config(server_id_, 0, server_uri_, "", /* follower= */ !can_become_leader_, priority); + nuraft::srv_config config(server_id_, 0, server_uri_, "", /* learner = */ !can_become_leader_, priority); auto ret1 = raft_instance->add_srv(config); auto code = ret1->get_result_code(); if (code == nuraft::cmd_result_code::TIMEOUT