Fixed format issues.
This commit is contained in:
parent
bf98c610dc
commit
fbaa6f8490
|
@ -89,7 +89,6 @@ func (o *OpenTSDB) Write(metrics []telegraf.Metric) error {
|
|||
return fmt.Errorf("Error in parsing host url: %s", err.Error())
|
||||
}
|
||||
|
||||
|
||||
if u.Scheme == "" || u.Scheme == "tcp" {
|
||||
return o.WriteTelnet(metrics, u)
|
||||
} else if u.Scheme == "http" {
|
||||
|
|
|
@ -102,9 +102,9 @@ func BenchmarkHttpSend(b *testing.B) {
|
|||
}
|
||||
|
||||
o := &OpenTSDB{
|
||||
Host: ts.URL,
|
||||
Port: port,
|
||||
Prefix: "",
|
||||
Host: ts.URL,
|
||||
Port: port,
|
||||
Prefix: "",
|
||||
HttpBatchSize: BatchSize,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue