Skip to content

Commit

Permalink
does that fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldambra committed Mar 22, 2024
1 parent 92a3119 commit aa694c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin-server/src/utils/db/kafka-producer-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,8 @@ export class KafkaProducerWrapper {
}

public async disconnect(): Promise<void> {
if (this.producer.isConnected()) {
await this.flush()
await disconnectProducer(this.producer)
}
await this.flush()
await disconnectProducer(this.producer)
}
}

Expand Down

0 comments on commit aa694c6

Please sign in to comment.