From 3b4f085972edb4db5bba10ab2c56de66c2e22208 Mon Sep 17 00:00:00 2001 From: Teppo Kurki Date: Thu, 28 Mar 2024 20:56:33 +0200 Subject: [PATCH] fix: writeApi options WriteApi options like batchsize were not being passed to Influx client and they were not taking effect. This fixes the issue. --- src/influx.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/influx.ts b/src/influx.ts index e700802..e7e8ec4 100644 --- a/src/influx.ts +++ b/src/influx.ts @@ -141,6 +141,7 @@ export class SKInflux { this.useSKTimestamp = useSKTimestamp this.resolution = resolution this.writeApi = this.influx.getWriteApi(org, bucket, 'ms', { + ...config.writeOptions, // eslint-disable-next-line @typescript-eslint/no-unused-vars writeFailed: (_error, lines, _attempt, _expires) => { this.failedLinesCount += lines.length