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

Add comment

parent f7342990
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,8 @@ static int cmp_arg(const grpc_arg *a, const grpc_arg *b) { ...@@ -118,6 +118,8 @@ static int cmp_arg(const grpc_arg *a, const grpc_arg *b) {
GPR_UNREACHABLE_CODE(return 0); GPR_UNREACHABLE_CODE(return 0);
} }
/* stabilizing comparison function: since channel_args ordering matters for
* keys with the same name, we need to preserve that ordering */
static int cmp_key_stable(const void *ap, const void *bp) { static int cmp_key_stable(const void *ap, const void *bp) {
const grpc_arg *const *a = ap; const grpc_arg *const *a = ap;
const grpc_arg *const *b = bp; const grpc_arg *const *b = bp;
......
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