From d0b859ec377a757d8bf726752c00be7ede73478e Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Fri, 19 Oct 2018 00:28:47 +0200 Subject: format --- js/metrics_test.ts | 2 +- src/isolate.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/metrics_test.ts b/js/metrics_test.ts index fd146df2d..f1572ae54 100644 --- a/js/metrics_test.ts +++ b/js/metrics_test.ts @@ -41,4 +41,4 @@ testPerm({ write: true }, async function metricsUpdatedIfNoResponseAsync() { const metrics = deno.metrics(); assert(metrics.opsDispatched === metrics.opsCompleted); -}); \ No newline at end of file +}); diff --git a/src/isolate.rs b/src/isolate.rs index 340b1db89..be6197c68 100644 --- a/src/isolate.rs +++ b/src/isolate.rs @@ -172,7 +172,7 @@ impl Isolate { pub fn respond(&mut self, req_id: i32, buf: Buf) { self.state.metrics_op_completed(buf.len() as u64); - + // TODO(zero-copy) Use Buf::leak(buf) to leak the heap allocated buf. And // don't do the memcpy in ImportBuf() (in libdeno/binding.cc) unsafe { -- cgit v1.2.3