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/symlink.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'js/symlink.ts') diff --git a/js/symlink.ts b/js/symlink.ts index 28bf6c859..40551e9f8 100644 --- a/js/symlink.ts +++ b/js/symlink.ts @@ -1,7 +1,5 @@ // 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 * as dispatch from "./dispatch"; +import { sendSync, sendAsync, msg, flatbuffers } from "./dispatch_flatbuffers"; import * as util from "./util"; import { platform } from "./build"; @@ -31,7 +29,7 @@ export function symlinkSync( newname: string, type?: string ): void { - dispatch.sendSync(...req(oldname, newname, type)); + sendSync(...req(oldname, newname, type)); } /** Creates `newname` as a symbolic link to `oldname`. The type argument can be @@ -45,5 +43,5 @@ export async function symlink( newname: string, type?: string ): Promise { - await dispatch.sendAsync(...req(oldname, newname, type)); + await sendAsync(...req(oldname, newname, type)); } -- cgit v1.2.3