Skip to content

Commit 6f78fc5

Browse files
committed
refactor(FQDN): feather refactor on client and host_port.h
1 parent 2b4acc9 commit 6f78fc5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/meta/load_balance_policy.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ generate_balancer_request(const app_mapper &apps,
180180
GET_HOST_PORT(pc, primary, primary);
181181
result.action_list.emplace_back(
182182
new_proposal_action(primary, to, config_type::CT_ADD_SECONDARY_FOR_LB));
183-
result.action_list.emplace_back(
184-
new_proposal_action(primary, from, config_type::CT_REMOVE));
183+
result.action_list.emplace_back(new_proposal_action(primary, from, config_type::CT_REMOVE));
185184
break;
186185
}
187186
default:

src/rpc/rpc_host_port.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ class TProtocol;
140140
do { \
141141
auto &_obj = (obj); \
142142
_obj.field.clear(); \
143-
_obj.hp_##field.clear(); \
144-
_obj.__isset.hp_##field = false; \
143+
_obj.hp_##field.clear(); \
144+
_obj.__isset.hp_##field = false; \
145145
} while (0)
146146

147147
// Add 'addr' and 'hp' to the vector '<field>' and optional vector 'hp_<field>' of 'obj'. The types

0 commit comments

Comments
 (0)