fix: batch point sending problem
This commit is contained in:
parent
1837a0b632
commit
b573b22457
@ -84,10 +84,11 @@ func SendDataToInflux(c *config.Config, d Data) error {
|
||||
}
|
||||
|
||||
bp.AddPoint(point)
|
||||
err = httpClient.Write(bp)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
err = httpClient.Write(bp)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user