Skip to content

Commit 37c315a

Browse files
committed
refactor(FQDN): feather refactor on client and host_port.h
1 parent 181bf8b commit 37c315a

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

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
@@ -139,8 +139,8 @@ class TProtocol;
139139
do { \
140140
auto &_obj = (obj); \
141141
_obj.field.clear(); \
142-
_obj.hp_##field.clear(); \
143-
_obj.__isset.hp_##field = false; \
142+
_obj.hp_##field.clear(); \
143+
_obj.__isset.hp_##field = false; \
144144
} while (0)
145145

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

0 commit comments

Comments
 (0)