1
0
Fork 0

Add Clear function comment

This commit is contained in:
Gregory Eremin 2014-08-20 15:10:39 +07:00
parent b3bb3000bd
commit 27928aae1d
1 changed files with 1 additions and 0 deletions

View File

@ -59,6 +59,7 @@ func (b *Buffer) Flush() {
b.Clear()
}
// Clears buffer contents without flushing series to database
func (b *Buffer) Clear() {
b.series = make(map[string]*influxdb.Series)
b.size = 0