|
|
|
@ -157,7 +157,7 @@ void grpc_channel_stack_destroy(grpc_exec_ctx *exec_ctx, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
grpc_error* grpc_call_stack_init(grpc_exec_ctx *exec_ctx, |
|
|
|
|
grpc_error *grpc_call_stack_init(grpc_exec_ctx *exec_ctx, |
|
|
|
|
grpc_channel_stack *channel_stack, |
|
|
|
|
int initial_refs, grpc_iomgr_cb_func destroy, |
|
|
|
|
void *destroy_arg, |
|
|
|
@ -179,7 +179,7 @@ grpc_error* grpc_call_stack_init(grpc_exec_ctx *exec_ctx, |
|
|
|
|
ROUND_UP_TO_ALIGNMENT_SIZE(count * sizeof(grpc_call_element)); |
|
|
|
|
|
|
|
|
|
/* init per-filter data */ |
|
|
|
|
grpc_error* first_error = GRPC_ERROR_NONE; |
|
|
|
|
grpc_error *first_error = GRPC_ERROR_NONE; |
|
|
|
|
for (i = 0; i < count; i++) { |
|
|
|
|
args.call_stack = call_stack; |
|
|
|
|
args.server_transport_data = transport_server_data; |
|
|
|
@ -187,8 +187,8 @@ grpc_error* grpc_call_stack_init(grpc_exec_ctx *exec_ctx, |
|
|
|
|
call_elems[i].filter = channel_elems[i].filter; |
|
|
|
|
call_elems[i].channel_data = channel_elems[i].channel_data; |
|
|
|
|
call_elems[i].call_data = user_data; |
|
|
|
|
grpc_error* error = call_elems[i].filter->init_call_elem( |
|
|
|
|
exec_ctx, &call_elems[i], &args); |
|
|
|
|
grpc_error *error = |
|
|
|
|
call_elems[i].filter->init_call_elem(exec_ctx, &call_elems[i], &args); |
|
|
|
|
if (error != GRPC_ERROR_NONE && first_error == GRPC_ERROR_NONE) |
|
|
|
|
first_error = error; |
|
|
|
|
user_data += |
|
|
|
|