diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-10 04:30:38 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-09 12:30:38 -0500 |
commit | 034e2cc02829c9244b32232074c7a48af827a2fb (patch) | |
tree | bade01606a1ee076c1f753ce99c97ddb1e4edf30 /js/metrics.ts | |
parent | 8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff) |
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'js/metrics.ts')
-rw-r--r-- | js/metrics.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/metrics.ts b/js/metrics.ts index 1cbc9f13b..111015078 100644 --- a/js/metrics.ts +++ b/js/metrics.ts @@ -12,11 +12,6 @@ export interface Metrics { bytesReceived: number; } -/** Receive metrics from the privileged side of Deno. */ -export function metrics(): Metrics { - return res(dispatch.sendSync(...req())); -} - function req(): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] { const builder = flatbuffers.createBuilder(); msg.Metrics.startMetrics(builder); @@ -38,3 +33,8 @@ function res(baseRes: null | msg.Base): Metrics { bytesReceived: res.bytesReceived().toFloat64() }; } + +/** Receive metrics from the privileged side of Deno. */ +export function metrics(): Metrics { + return res(dispatch.sendSync(...req())); +} |