Skip to content

Commit

Permalink
chore: remove unnecessary await
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnagydavid committed Sep 30, 2024
1 parent 03065f4 commit fa99339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/redisClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export class RedisClient implements CommonClient {
async hScanCount(key: string, opt: ScanStreamOptions): Promise<number> {
let count = 0

const stream = await this.redis().hscanStream(key, opt)
const stream = this.redis().hscanStream(key, opt)

await stream.forEach((keyValueList: string[]) => {
count += keyValueList.length / 2
Expand Down

0 comments on commit fa99339

Please sign in to comment.