From bdc97b3976786bb744a27e59b0f4f28554a682df Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 21 Aug 2019 20:42:48 -0400 Subject: Organize dispatch a bit (#2796) Just some clean up reorganization around flatbuffer/minimal dispatch code. This is prep for adding a JSON dispatcher. --- js/metrics.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'js/metrics.ts') diff --git a/js/metrics.ts b/js/metrics.ts index 92ed5b52e..e93e9528c 100644 --- a/js/metrics.ts +++ b/js/metrics.ts @@ -1,8 +1,6 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import * as msg from "gen/cli/msg_generated"; -import * as flatbuffers from "./flatbuffers"; import { assert } from "./util"; -import * as dispatch from "./dispatch"; +import { sendSync, msg, flatbuffers } from "./dispatch_flatbuffers"; export interface Metrics { opsDispatched: number; @@ -47,5 +45,5 @@ function res(baseRes: null | msg.Base): Metrics { * └──────────────────┴────────┘ */ export function metrics(): Metrics { - return res(dispatch.sendSync(...req())); + return res(sendSync(...req())); } -- cgit v1.2.3