Skip to content
Snippets Groups Projects
Commit 55f25b6c authored by Mark D. Roth's avatar Mark D. Roth
Browse files

clang-format

parent 196387a9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment