diff options
author | Bert Belder <bertbelder@gmail.com> | 2018-10-19 00:28:47 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2018-10-19 00:29:09 +0200 |
commit | d0b859ec377a757d8bf726752c00be7ede73478e (patch) | |
tree | eb90861c4a25db5ffcbc13d7dfa740feece49a21 | |
parent | d534ea41adb9c8fe4b434eee30a709e0b45097f1 (diff) |
format
-rw-r--r-- | js/metrics_test.ts | 2 | ||||
-rw-r--r-- | 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 { |