diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-03 21:18:23 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-04 00:25:55 -0400 |
commit | 818ad37678e478039a9eccf543e1049fcdf32566 (patch) | |
tree | 2f97738e66c8c0b25d7fb2caa32dcec4d4d644c4 /js/truncate.ts | |
parent | f774953011cb3ad85914bc9f5f66aa121f00528d (diff) |
Rename fbs to msg.
Diffstat (limited to 'js/truncate.ts')
-rw-r--r-- | js/truncate.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/truncate.ts b/js/truncate.ts index c5cfbbf74..ed105ae28 100644 --- a/js/truncate.ts +++ b/js/truncate.ts @@ -1,5 +1,5 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. -import * as fbs from "gen/msg_generated"; +import * as msg from "gen/msg_generated"; import { flatbuffers } from "flatbuffers"; import * as dispatch from "./dispatch"; @@ -30,13 +30,13 @@ export async function truncate(name: string, len?: number): Promise<void> { function req( name: string, len?: number -): [flatbuffers.Builder, fbs.Any, flatbuffers.Offset] { +): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] { const builder = new flatbuffers.Builder(); const name_ = builder.createString(name); len = len && len > 0 ? Math.floor(len) : 0; - fbs.Truncate.startTruncate(builder); - fbs.Truncate.addName(builder, name_); - fbs.Truncate.addLen(builder, len); - const inner = fbs.Truncate.endTruncate(builder); - return [builder, fbs.Any.Truncate, inner]; + msg.Truncate.startTruncate(builder); + msg.Truncate.addName(builder, name_); + msg.Truncate.addLen(builder, len); + const inner = msg.Truncate.endTruncate(builder); + return [builder, msg.Any.Truncate, inner]; } |