1
0

Add Clear function comment

This commit is contained in:
2014-08-20 15:10:39 +07:00
parent b3bb3000bd
commit 27928aae1d
+1
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