Skip to content

Commit

Permalink
fix: writeApi options
Browse files Browse the repository at this point in the history
WriteApi options like batchsize were not being passed
to Influx client and they were not taking effect. This
fixes the issue.
  • Loading branch information
tkurki committed Mar 28, 2024
1 parent 82ae3f3 commit 3b4f085
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/influx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b4f085

Please sign in to comment.