From 75986c82dd064a99d838cd8ca869be06cc904097 Mon Sep 17 00:00:00 2001 From: rishtigupta <127137312+rishtigupta@users.noreply.github.com> Date: Fri, 17 Mar 2023 09:38:20 -0700 Subject: [PATCH] fix: remove unused imports (#352) * fix: remove unused imports * Remove unused variables --- examples/request-coalescing.ts | 8 ++++---- examples/utils/load-gen-statistics-calculator.ts | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/request-coalescing.ts b/examples/request-coalescing.ts index f918dd3f8..2069ed712 100644 --- a/examples/request-coalescing.ts +++ b/examples/request-coalescing.ts @@ -81,7 +81,7 @@ class RequestCoalescerLoadGen { const asyncGetSetResults = range( this.options.numberOfConcurrentRequests - ).map(_ => this.launchAndRunWorkers(momento, loadGenContext)); + ).map(() => this.launchAndRunWorkers(momento, loadGenContext)); await Promise.all(asyncGetSetResults); @@ -116,7 +116,9 @@ class RequestCoalescerLoadGen { const asyncGetSetResultsWithRequestCoalescer = range( this.options.numberOfConcurrentRequests - ).map(_ => this.launchAndRunWorkers(momentoWithCoalescing, loadGenContext)); + ).map(() => + this.launchAndRunWorkers(momentoWithCoalescing, loadGenContext) + ); await Promise.all(asyncGetSetResultsWithRequestCoalescer); @@ -140,13 +142,11 @@ class RequestCoalescerLoadGen { const finish = () => (finished = true); setTimeout(finish, this.options.totalSecondsToRun * 1000); - let i = 1; for (;;) { await this.issueAsyncSetGet(client, loadGenContext); if (finished) { return; } - i++; } } diff --git a/examples/utils/load-gen-statistics-calculator.ts b/examples/utils/load-gen-statistics-calculator.ts index 3e59fdd9d..66c5784c1 100644 --- a/examples/utils/load-gen-statistics-calculator.ts +++ b/examples/utils/load-gen-statistics-calculator.ts @@ -1,7 +1,6 @@ import {BasicLoadGenContext, RequestCoalescerContext} from './load-gen'; import * as hdr from 'hdr-histogram-js'; import {MomentoLogger} from '@gomomento/sdk'; -import {load} from '@grpc/grpc-js'; export function tps( context: BasicLoadGenContext,