diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-02-25 09:14:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-25 09:14:27 -0500 |
commit | 91b606aaae23bcb790b55adc5fe70a182a37d564 (patch) | |
tree | 16b56a21ffcb3991569eda984fbd14073bdbd3ae /cli/js/fs_events.ts | |
parent | 805992b14a65a6dbfb857dea6d9b657477de043d (diff) |
Clean up how we use opIds (#4118)
Diffstat (limited to 'cli/js/fs_events.ts')
-rw-r--r-- | cli/js/fs_events.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/fs_events.ts b/cli/js/fs_events.ts index a4deff48a..b549b3d4d 100644 --- a/cli/js/fs_events.ts +++ b/cli/js/fs_events.ts @@ -1,6 +1,5 @@ // Copyright 2019 the Deno authors. All rights reserved. MIT license. import { sendSync, sendAsync } from "./dispatch_json.ts"; -import * as dispatch from "./dispatch.ts"; import { close } from "./files.ts"; export interface FsEvent { @@ -13,11 +12,11 @@ class FsEvents implements AsyncIterableIterator<FsEvent> { constructor(paths: string[], options: { recursive: boolean }) { const { recursive } = options; - this.rid = sendSync(dispatch.OP_FS_EVENTS_OPEN, { recursive, paths }); + this.rid = sendSync("op_fs_events_open", { recursive, paths }); } async next(): Promise<IteratorResult<FsEvent>> { - return await sendAsync(dispatch.OP_FS_EVENTS_POLL, { + return await sendAsync("op_fs_events_poll", { rid: this.rid }); } |