aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/transport
diff options
context:
space:
mode:
authorGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-08 21:34:08 -0700
committerGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-08 21:34:08 -0700
commit9fc81bd74e6373d2ded56a75950201c620229b89 (patch)
tree91a3b1f7d8b5cf0d217bc92188ba47fe3f24d65e /src/core/lib/transport
parent5e2f7c472a6f1ed4b174eb8591b4924093d43607 (diff)
parent7c368ce71b69f829e9b1d362d107d04f029a125f (diff)
Merge branch 'hpack_static_table' of github.com:hcaseyal/grpc into hpack_static_table
Diffstat (limited to 'src/core/lib/transport')
-rw-r--r--src/core/lib/transport/metadata_batch.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/lib/transport/metadata_batch.cc b/src/core/lib/transport/metadata_batch.cc
index 2e19071fb2..e2918fa08a 100644
--- a/src/core/lib/transport/metadata_batch.cc
+++ b/src/core/lib/transport/metadata_batch.cc
@@ -461,7 +461,7 @@ grpc_error* grpc_metadata_batch_filter(grpc_metadata_batch* batch,
grpc_error* error = GRPC_ERROR_NONE;
while (l) {
grpc_linked_mdelem* next = l->next;
- //TODO(hcaseyal): provide a mechanism to filter mdelems with indices
+ // TODO(hcaseyal): provide a mechanism to filter mdelems with indices
if (!is_mdelem_index_used(l->md_index)) {
grpc_filtered_mdelem new_mdelem = func(user_data, l->md);
add_error(&error, new_mdelem.error, composite_error_string);
@@ -486,10 +486,11 @@ void grpc_metadata_batch_copy(grpc_metadata_batch* src,
elem = elem->next) {
grpc_error* error = nullptr;
if (is_mdelem_index_used(elem->md_index)) {
- error = grpc_metadata_batch_add_tail_index(dst, &storage[i++], elem->md_index);
+ error = grpc_metadata_batch_add_tail_index(dst, &storage[i++],
+ elem->md_index);
} else {
error = grpc_metadata_batch_add_tail(dst, &storage[i++],
- GRPC_MDELEM_REF(elem->md));
+ GRPC_MDELEM_REF(elem->md));
}
// The only way that grpc_metadata_batch_add_tail() can fail is if
// there's a duplicate entry for a callout. However, that can't be