Skip to content

Commit 220e461

Browse files
authored
Fix passing instance method as param (#361)
1 parent 39234ae commit 220e461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/kafka/lib/AbstractKafkaConsumer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export abstract class AbstractKafkaConsumer<
216216

217217
// we are not waiting for the stream to complete
218218
// because init() must return promised void
219-
this.handleSyncStream(stream).catch(this.handlerError)
219+
this.handleSyncStream(stream).catch((error) => this.handlerError(error))
220220
}
221221

222222
this.consumerStream.on('error', (error) => this.handlerError(error))

0 commit comments

Comments
 (0)