aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/transport
diff options
context:
space:
mode:
authorGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-10 15:31:14 -0700
committerGravatar Hope Casey-Allen <hcaseyal@google.com>2018-09-10 15:31:14 -0700
commitc004a8e2593bfd4f493d35bfc995b895b51c261b (patch)
treeb51022bc3423a20cb4a88408a5d505d9d992f0c3 /src/core/ext/transport
parent23f0ab38fb6f09dcbf9371e6d681515e36df85a1 (diff)
Responding to code review comments
Diffstat (limited to 'src/core/ext/transport')
-rw-r--r--src/core/ext/transport/chttp2/transport/chttp2_transport.cc2
-rw-r--r--src/core/ext/transport/chttp2/transport/hpack_encoder.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
index f510a3f52c..3d6f150ea1 100644
--- a/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
+++ b/src/core/ext/transport/chttp2/transport/chttp2_transport.cc
@@ -1332,7 +1332,7 @@ static void log_metadata(const grpc_metadata_batch* md_batch, uint32_t id,
bool is_client, bool is_initial) {
for (grpc_linked_mdelem* md = md_batch->list.head; md != nullptr;
md = md->next) {
- if (is_valid_mdelem_index(md->md_index)) {
+ if (grpc_metadata_batch_is_valid_mdelem_index(md->md_index)) {
gpr_log(GPR_INFO, "HTTP:%d:%s:%s: hpack table index: %d", id,
is_initial ? "HDR" : "TRL", is_client ? "CLI" : "SVR",
md->md_index);
diff --git a/src/core/ext/transport/chttp2/transport/hpack_encoder.cc b/src/core/ext/transport/chttp2/transport/hpack_encoder.cc
index c9ba74bf64..9e63144c94 100644
--- a/src/core/ext/transport/chttp2/transport/hpack_encoder.cc
+++ b/src/core/ext/transport/chttp2/transport/hpack_encoder.cc
@@ -689,7 +689,7 @@ void grpc_chttp2_encode_header(grpc_chttp2_hpack_compressor* c,
}
for (size_t i = 0; i < extra_headers_size; ++i) {
grpc_linked_mdelem* linked_md = extra_headers[i];
- if (is_valid_mdelem_index(linked_md->md_index)) {
+ if (grpc_metadata_batch_is_valid_mdelem_index(linked_md->md_index)) {
emit_indexed(c, linked_md->md_index, &st);
} else {
hpack_enc(c, linked_md->md, &st);
@@ -697,7 +697,7 @@ void grpc_chttp2_encode_header(grpc_chttp2_hpack_compressor* c,
}
grpc_metadata_batch_assert_ok(metadata);
for (grpc_linked_mdelem* l = metadata->list.head; l; l = l->next) {
- if (is_valid_mdelem_index(l->md_index)) {
+ if (grpc_metadata_batch_is_valid_mdelem_index(l->md_index)) {
emit_indexed(c, l->md_index, &st);
} else {
hpack_enc(c, l->md, &st);