Fixed format issues.

This commit is contained in:
Eric 2016-07-22 13:11:51 -04:00
parent bf98c610dc
commit fbaa6f8490
2 changed files with 3 additions and 4 deletions

View File

@ -89,7 +89,6 @@ func (o *OpenTSDB) Write(metrics []telegraf.Metric) error {
return fmt.Errorf("Error in parsing host url: %s", err.Error()) return fmt.Errorf("Error in parsing host url: %s", err.Error())
} }
if u.Scheme == "" || u.Scheme == "tcp" { if u.Scheme == "" || u.Scheme == "tcp" {
return o.WriteTelnet(metrics, u) return o.WriteTelnet(metrics, u)
} else if u.Scheme == "http" { } else if u.Scheme == "http" {

View File

@ -102,9 +102,9 @@ func BenchmarkHttpSend(b *testing.B) {
} }
o := &OpenTSDB{ o := &OpenTSDB{
Host: ts.URL, Host: ts.URL,
Port: port, Port: port,
Prefix: "", Prefix: "",
HttpBatchSize: BatchSize, HttpBatchSize: BatchSize,
} }