Skip to content

Commit

Permalink
disconnect producer
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 20, 2024
1 parent 55c8ef5 commit b22cdb8
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ export class SessionRecordingIngester {
*/
this.promises.add(promise)

// eslint-disable-next-line @typescript-eslint/no-floating-promises
promise.finally(() => this.promises.delete(promise))

Check failure on line 233 in plugin-server/src/main/ingestion-queues/session-recording/session-recordings-consumer.ts

View workflow job for this annotation

GitHub Actions / Code quality

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator

return promise
Expand Down Expand Up @@ -545,6 +544,8 @@ export class SessionRecordingIngester {
await this.redisPool.drain()
await this.redisPool.clear()

await this.ingestionWarningProducer?.disconnect()

status.info('👍', 'blob_ingester_consumer - stopped!')

return promiseResults
Expand Down

0 comments on commit b22cdb8

Please sign in to comment.