Skip to content

Commit

Permalink
fix(): provide the instance to getConnectionPerf call (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rossb0b authored Dec 2, 2023
1 parent 147adfe commit 219d1d3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/class/stream/Stream.class.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export declare class Stream extends EventEmitter {
*
* @description Push a new entry on the stream, if no ID provided, use the special ID "*".
* Using the special ID "*", Redis generate IDs as follow 1526985685298-0, the first part
* being a timestamp, and the second an incremente.
* being a timestamp, and the second an increment.
* @param {data: { key: string; value: string | Buffer | number }, options: { id?: string; metadata?: string }} [options]
* @returns {Promise<string>}
* @example
Expand Down
2 changes: 1 addition & 1 deletion dist/class/stream/Stream.class.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/class/stream/Stream.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export class Stream extends EventEmitter {
*
* @description Push a new entry on the stream, if no ID provided, use the special ID "*".
* Using the special ID "*", Redis generate IDs as follow 1526985685298-0, the first part
* being a timestamp, and the second an incremente.
* being a timestamp, and the second an increment.
* @param {data: { key: string; value: string | Buffer | number }, options: { id?: string; metadata?: string }} [options]
* @returns {Promise<string>}
* @example
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export async function clearAllKeys(instance: Instance = "publisher", redis?: Red
}

async function closeConnection(instance: Instance = "publisher", redis: Redis, forceExit: boolean = false) {
const { isAlive } = await getConnectionPerf(instance);
const { isAlive } = await getConnectionPerf(instance, redis);

if (!isAlive) {
return;
Expand Down

0 comments on commit 219d1d3

Please sign in to comment.