Skip to content
Snippets Groups Projects
Commit e38948a1 authored by Craig Tiller's avatar Craig Tiller
Browse files

clang-format

parent 85bf34a4
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,8 @@ static void me_write(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep, ...@@ -108,7 +108,8 @@ static void me_write(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
m->on_read = NULL; m->on_read = NULL;
} else { } else {
for (size_t i = 0; i < slices->count; i++) { for (size_t i = 0; i < slices->count; i++) {
grpc_slice_buffer_add(&m->read_buffer, grpc_slice_copy(slices->slices[i])); grpc_slice_buffer_add(&m->read_buffer,
grpc_slice_copy(slices->slices[i]));
} }
} }
gpr_mu_unlock(&m->parent->mu); gpr_mu_unlock(&m->parent->mu);
......
...@@ -71,7 +71,8 @@ static void te_write(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep, ...@@ -71,7 +71,8 @@ static void te_write(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep,
te->last_write = gpr_now(GPR_CLOCK_MONOTONIC); te->last_write = gpr_now(GPR_CLOCK_MONOTONIC);
} }
for (size_t i = 0; i < slices->count; i++) { for (size_t i = 0; i < slices->count; i++) {
grpc_slice_buffer_add(&te->write_buffer, grpc_slice_copy(slices->slices[i])); grpc_slice_buffer_add(&te->write_buffer,
grpc_slice_copy(slices->slices[i]));
} }
grpc_closure_sched(exec_ctx, cb, GRPC_ERROR_REF(te->error)); grpc_closure_sched(exec_ctx, cb, GRPC_ERROR_REF(te->error));
gpr_mu_unlock(&te->mu); gpr_mu_unlock(&te->mu);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment