zrhoffman commented on code in PR #6919:
URL: https://github.com/apache/trafficcontrol/pull/6919#discussion_r904350716
##########
traffic_stats/traffic_stats.go:
##########
@@ -555,7 +555,9 @@ func loadStartupConfig(configFile string, oldConfig
StartupConfig) (StartupConfi
//Close old connections explicitly
for _, host := range oldConfig.InfluxDBs {
if host.InfluxClient != nil {
- host.InfluxClient.Close()
+ if err := host.InfluxClient.Close(); err != nil {
+ errorf("closing influx client: %s", err)
Review Comment:
Can `log.Close()` be used?
##########
traffic_stats/traffic_stats.go:
##########
@@ -1063,7 +1065,9 @@ func influxConnect(config StartupConfig) (influx.Client,
error) {
}
//Close old connections explicitly
if host.InfluxClient != nil {
- host.InfluxClient.Close()
+ if err := host.InfluxClient.Close(); err != nil {
+ errorf("closing influx client: %s", err)
Review Comment:
Can `log.Close()` be used?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]