@platformatic/kafka 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -302,7 +302,11 @@ export class MessagesStream extends Readable {
302
302
  return super[Symbol.asyncIterator]();
303
303
  }
304
304
  _construct(callback) {
305
- this.#refreshOffsets(callback);
305
+ this.#refreshOffsetsInflight = true;
306
+ this.#refreshOffsets(error => {
307
+ this.#refreshOffsetsInflight = false;
308
+ callback(error ?? undefined);
309
+ });
306
310
  }
307
311
  _destroy(error, callback) {
308
312
  if (this.#autocommitInterval) {
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = "@platformatic/kafka";
2
- export const version = "2.2.2";
2
+ export const version = "2.2.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/kafka",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Modern and performant client for Apache Kafka",
5
5
  "homepage": "https://github.com/platformatic/kafka",
6
6
  "author": "Platformatic Inc. <oss@platformatic.dev> (https://platformatic.dev)",