Skip to content

Commit

Permalink
fix: type definition in perftest
Browse files Browse the repository at this point in the history
  • Loading branch information
icappello committed Dec 20, 2023
1 parent 1a80b58 commit b4c7161
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions performance_test/perf_test_producer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class PerfTestProducer {
private payload: Buffer
private readonly maxChunkSize: number = 1000
private ctr = 0
private displayTimer: NodeJS.Timer | null
private displayTimer: NodeJS.Timeout | null

constructor(
private readonly connection: Connection,
Expand Down Expand Up @@ -46,7 +46,7 @@ export class PerfTestProducer {
const metrics = { ...this.metrics.getMetrics(), total: this.ctr }
this.logger.info(`${inspect(metrics)}`)
if (stop && this.displayTimer) {
clearInterval(this.displayTimer[Symbol.toPrimitive]())
clearInterval(this.displayTimer)
}
}

Expand Down

0 comments on commit b4c7161

Please sign in to comment.