aggiunto timeout nella connessione a influxdb

This commit is contained in:
Miki 2016-03-25 10:19:34 +01:00
parent 5ef381fd79
commit e264300430
2 changed files with 3 additions and 2 deletions

View file

@ -14,7 +14,8 @@ func writeStats(start time.Time) {
}
c, err := influxdb.NewHTTPClient(influxdb.HTTPConfig{
Addr: opts.Influxdb,
Addr: opts.Influxdb,
Timeout: 2 * time.Second,
})
if err != nil {
fmt.Printf("Error: %+v\n", err)

View file

@ -11,7 +11,7 @@ import (
)
const (
_VERSION = "v2.5.1"
_VERSION = "v2.5.2"
)
var (