Skip to content

Commit

Permalink
fix(transport): change typing of redis transport
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Sep 25, 2023
1 parent 02fad53 commit 3ef8dbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transports/redis_transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export class RedisTransport implements Transport {
await this.#client.publish(channel, JSON.stringify(payload))
}

subscribe(channel: string, handler: PubSubChannelHandler): Promise<void> {
return Promise.resolve(this.#client.subscribe(channel, handler))
async subscribe(channel: string, handler: PubSubChannelHandler): Promise<void> {
return this.#client.subscribe(channel, handler)
}

unsubscribe(channel: string): Promise<void> {
return Promise.resolve(this.#client.unsubscribe(channel))
return this.#client.unsubscribe(channel) as Promise<void>
}
}

0 comments on commit 3ef8dbd

Please sign in to comment.