Skip to content

Commit 88fb0a4

Browse files
committed
refactor(FQDN): feather refactor on client and host_port.h
1 parent fb5d631 commit 88fb0a4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/meta/partition_guardian.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@ bool partition_guardian::from_proposals(meta_view &view,
161161

162162
auto handle_invalid_action = [&](std::string_view reason) {
163163
LOG_INFO("proposal action({}) for gpid({}) is invalid, clear all proposal actions: {}",
164-
action, gpid, reason);
164+
action,
165+
gpid,
166+
reason);
165167
action.type = config_type::CT_INVALID;
166168

167169
while (!cc.lb_actions.empty()) {
@@ -188,7 +190,7 @@ bool partition_guardian::from_proposals(meta_view &view,
188190
GET_HOST_PORT(pc, primary, primary);
189191

190192
if (!target) {
191-
return handle_invalid_action("action target is invalid");
193+
return handle_invalid_action("action target is invalid");
192194
}
193195
if (!is_node_alive(*(view.nodes), target)) {
194196
return handle_invalid_action(fmt::format("action target({}) is not alive", target));
@@ -232,7 +234,7 @@ bool partition_guardian::from_proposals(meta_view &view,
232234
if (is_action_valid) {
233235
return true;
234236
}
235-
237+
236238
return handle_invalid_action("action is invalid");
237239
}
238240

src/meta/test/meta_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ TEST(meta_data, construct_replica)
457457
host_port primary;
458458
GET_HOST_PORT(pc, primary, primary);
459459
ASSERT_EQ(node_list[2], primary);
460-
460+
461461
std::vector<host_port> secondaries;
462462
GET_HOST_PORTS(pc, secondaries, secondaries);
463463
ASSERT_TRUE(secondaries.empty());

0 commit comments

Comments
 (0)