clang-format

pull/11336/head
Craig Tiller 8 years ago
parent 8239b80459
commit ae6083674a
  1. 3
      src/core/ext/filters/client_channel/client_channel.c
  2. 13
      src/core/lib/iomgr/tcp_windows.c
  3. 4
      test/core/bad_client/bad_client.c

@ -1222,8 +1222,7 @@ static void start_transport_stream_op_batch_locked_inner(
set_call_or_error(calld,
(call_or_error){.error = GRPC_ERROR_REF(error)});
fail_locked(exec_ctx, calld, GRPC_ERROR_REF(error));
grpc_transport_stream_op_batch_finish_with_failure(
exec_ctx, op, error);
grpc_transport_stream_op_batch_finish_with_failure(exec_ctx, op, error);
return; // Early out.
}
} else {

@ -402,15 +402,10 @@ static grpc_resource_user *win_get_resource_user(grpc_endpoint *ep) {
static int win_get_fd(grpc_endpoint *ep) { return -1; }
static grpc_endpoint_vtable vtable = {win_read,
win_write,
win_add_to_pollset,
win_add_to_pollset_set,
win_shutdown,
win_destroy,
win_get_resource_user,
win_get_peer,
win_get_fd};
static grpc_endpoint_vtable vtable = {
win_read, win_write, win_add_to_pollset, win_add_to_pollset_set,
win_shutdown, win_destroy, win_get_resource_user, win_get_peer,
win_get_fd};
grpc_endpoint *grpc_tcp_create(grpc_exec_ctx *exec_ctx, grpc_winsocket *socket,
grpc_channel_args *channel_args,

@ -172,7 +172,9 @@ void grpc_run_bad_client_test(
gpr_timespec deadline = grpc_timeout_seconds_to_deadline(5);
while (!gpr_event_get(&args.read_done)) {
GPR_ASSERT(gpr_time_cmp(deadline, gpr_now(deadline.clock_type)) > 0);
GPR_ASSERT(grpc_completion_queue_next(a.cq, grpc_timeout_milliseconds_to_deadline(100), NULL).type == GRPC_QUEUE_TIMEOUT);
GPR_ASSERT(grpc_completion_queue_next(
a.cq, grpc_timeout_milliseconds_to_deadline(100), NULL)
.type == GRPC_QUEUE_TIMEOUT);
}
grpc_slice_buffer_destroy_internal(&exec_ctx, &args.incoming);
}

Loading…
Cancel
Save