fixparser-plugin-messagestore-kdb 9.4.5 → 9.4.6

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.
@@ -4356,8 +4356,8 @@ var MessageStoreKDB = class {
4356
4356
  this.writeToKDB();
4357
4357
  }
4358
4358
  }
4359
- getByMsgSequence() {
4360
- throw new Error("Not implemented, please use getByMsgSequenceAsync()");
4359
+ getByMsgSequence(msgSequence) {
4360
+ return this.inMemoryMessageStore.getByMsgSequence(msgSequence);
4361
4361
  }
4362
4362
  async getByMsgSequenceAsync(msgSequence) {
4363
4363
  const getRowById = `select message from ${this.tableName} where msgSequence=${msgSequence}i`;
@@ -4451,6 +4451,9 @@ var MessageStoreKDB = class {
4451
4451
  getCapacity() {
4452
4452
  return this.maxBufferSize;
4453
4453
  }
4454
+ async flushAsync() {
4455
+ await this.writeToKDB();
4456
+ }
4454
4457
  stopWriteInterval() {
4455
4458
  clearInterval(this.writeIntervalId);
4456
4459
  }