Skip to content

Commit

Permalink
fix: remove unused imports (#352)
Browse files Browse the repository at this point in the history
* fix: remove unused imports

* Remove unused variables
  • Loading branch information
rishtigupta authored Mar 17, 2023
1 parent 1ee5e06 commit 75986c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
8 changes: 4 additions & 4 deletions examples/request-coalescing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);

Expand All @@ -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++;
}
}

Expand Down
1 change: 0 additions & 1 deletion examples/utils/load-gen-statistics-calculator.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 75986c8

Please sign in to comment.