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