From cf892ad72ad8f5b86fb8df4f6bc6727b1ae5df63 Mon Sep 17 00:00:00 2001 From: vlastahajek Date: Tue, 5 May 2020 12:50:33 +0200 Subject: [PATCH] fix: Fixing comment for retry interval (#108) --- CHANGELOG.md | 2 ++ options.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 740c7596..7a378ec8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,10 @@ - [#107](https://github.com/influxdata/influxdb-client-go/pull/100) Renamed `InfluxDBClient` interface to `Client`, so the full name `influxdb2.Client` suits better to Go naming conventions ### Bug fixes +1. [#108](https://github.com/influxdata/influxdb-client-go/issues/108) Fix default retry interval doc 1. [#110](https://github.com/influxdata/influxdb-client-go/issues/110) Allowing empty (nil) values + ### Documentation - [#112](https://github.com/influxdata/influxdb-client-go/pull/112) Clarify how to use client with InfluxDB 1.8+ diff --git a/options.go b/options.go index 52128679..d1eaed1a 100644 --- a/options.go +++ b/options.go @@ -15,7 +15,7 @@ type Options struct { batchSize uint // Interval, in ms, in which is buffer flushed if it has not been already written (by reaching batch size) . Default 1000ms flushInterval uint - // Default retry interval in ms, if not sent by server. Default 30s + // Default retry interval in ms, if not sent by server. Default 1000ms retryInterval uint // Maximum count of retry attempts of failed writes maxRetries uint @@ -56,7 +56,7 @@ func (o *Options) SetFlushInterval(flushIntervalMs uint) *Options { return o } -// RetryInterval returns retry interval in ms +// RetryInterval returns the retry interval in ms func (o *Options) RetryInterval() uint { return o.retryInterval }