diff options
author | 2015-01-29 18:02:17 -0800 | |
---|---|---|
committer | 2015-01-29 18:02:17 -0800 | |
commit | 7bd3250c2accd5e62dfe07b160cf4333ca216a0e (patch) | |
tree | af50d72da05eab96ceb43848e4949cbc3908cae5 /src/node/ext/event.cc | |
parent | c4e09f667b0f58821ce137761deb4a62f8b5a3f0 (diff) |
Switched extension to return faster sliceable Buffers
Diffstat (limited to 'src/node/ext/event.cc')
-rw-r--r-- | src/node/ext/event.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node/ext/event.cc b/src/node/ext/event.cc index fcf046b697..b9446062d7 100644 --- a/src/node/ext/event.cc +++ b/src/node/ext/event.cc @@ -80,7 +80,8 @@ Handle<Value> ParseMetadata(grpc_metadata *metadata_elements, size_t length) { metadata_object->Set(key_string, array); } array->Set(index_map[elem->key], - NanNewBufferHandle(elem->value, elem->value_length)); + MakeFastBuffer( + NanNewBufferHandle(elem->value, elem->value_length))); index_map[elem->key] += 1; } return NanEscapeScope(metadata_object); |