Skip to content

Commit

Permalink
#77: correct type in influxdb code
Browse files Browse the repository at this point in the history
  • Loading branch information
aetaric committed Nov 8, 2023
1 parent a449c42 commit 38e48b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (s *Stats) FromConfig(config viper.Viper) {
if config.Sub("influxdb2") != nil {
influx := config.Sub("influxdb2")
s.influxdb2 = influxdb2.NewClient(influx.GetString("url"), influx.GetString("token"))
s.writeAPI2 = s.influxdb1.WriteAPIBlocking(influx.GetString("org"), influx.GetString("bucket"))
s.writeAPI2 = s.influxdb2.WriteAPIBlocking(influx.GetString("org"), influx.GetString("bucket"))
s.writeAPI2.EnableBatching()
s.Log.WithFields(log.Fields{"startup": true, "influxdb": "enabled"}).Info("Sending data to InfluxDB 2.x")
}
Expand Down

0 comments on commit 38e48b6

Please sign in to comment.