clang-format

pull/8303/head
Mark D. Roth 8 years ago
parent 196387a934
commit 55f25b6c27
  1. 5
      src/core/ext/client_config/client_channel.c
  2. 5
      src/core/lib/transport/hashtable.c

@ -680,9 +680,8 @@ static bool pick_subchannel(grpc_exec_ctx *exec_ctx, grpc_call_element *elem,
const grpc_lb_policy_pick_args inputs = {
calld->pollent, initial_metadata, initial_metadata_flags,
&calld->lb_token_mdelem, gpr_inf_future(GPR_CLOCK_MONOTONIC)};
const bool result =
grpc_lb_policy_pick(exec_ctx, lb_policy, &inputs,
connected_subchannel, NULL, on_ready);
const bool result = grpc_lb_policy_pick(
exec_ctx, lb_policy, &inputs, connected_subchannel, NULL, on_ready);
GRPC_LB_POLICY_UNREF(exec_ctx, lb_policy, "pick_subchannel");
GPR_TIMER_END("pick_subchannel", 0);
return result;

@ -47,8 +47,9 @@ struct grpc_hash_table {
// Helper function for insert and get operations that performs quadratic
// probing (https://en.wikipedia.org/wiki/Quadratic_probing).
static size_t grpc_hash_table_find_index(
const grpc_hash_table* table, const grpc_mdstr* key, bool find_empty) {
static size_t grpc_hash_table_find_index(const grpc_hash_table* table,
const grpc_mdstr* key,
bool find_empty) {
for (size_t i = 0; i < table->num_entries; ++i) {
const size_t idx = (key->hash + i * i) % table->num_entries;
if (table->entries[idx].key == NULL)

Loading…
Cancel
Save