diff options
author | 2017-01-26 12:08:11 -0800 | |
---|---|---|
committer | 2017-01-26 12:08:11 -0800 | |
commit | 4ffcb2058df96c1fa0a319cd3e5d4aa9358e5bae (patch) | |
tree | d7d7b7263992250585ca5084daf2ce1bb0705838 /src/core/lib/surface/server.c | |
parent | 890ccaedca87eb8f5c85889ce68d71f7b771d6f5 (diff) | |
parent | db74844fb6331370b1804d0034025fe27e8098ce (diff) |
Merge pull request #9465 from markdroth/core_api_change
Move parameters for all grpc_op types into their own sub-structs.
Diffstat (limited to 'src/core/lib/surface/server.c')
-rw-r--r-- | src/core/lib/surface/server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c index addb7c4fbc..9e916465be 100644 --- a/src/core/lib/surface/server.c +++ b/src/core/lib/surface/server.c @@ -609,7 +609,7 @@ static void finish_start_new_rpc( grpc_op op; memset(&op, 0, sizeof(op)); op.op = GRPC_OP_RECV_MESSAGE; - op.data.recv_message = &calld->payload; + op.data.recv_message.recv_message = &calld->payload; grpc_closure_init(&calld->publish, publish_new_rpc, elem, grpc_schedule_on_exec_ctx); grpc_call_start_batch_and_execute(exec_ctx, calld->call, &op, 1, @@ -857,7 +857,8 @@ static void accept_stream(grpc_exec_ctx *exec_ctx, void *cd, grpc_op op; memset(&op, 0, sizeof(op)); op.op = GRPC_OP_RECV_INITIAL_METADATA; - op.data.recv_initial_metadata = &calld->initial_metadata; + op.data.recv_initial_metadata.recv_initial_metadata = + &calld->initial_metadata; grpc_closure_init(&calld->got_initial_metadata, got_initial_metadata, elem, grpc_schedule_on_exec_ctx); grpc_call_start_batch_and_execute(exec_ctx, call, &op, 1, |