Add comment to deleteWorker()

This commit is contained in:
Julian Kornberger 2016-12-15 09:52:12 +01:00
parent 8ac5bf7cd5
commit c2e50f59d4
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ func (db *DB) Close() {
db.wg.Wait()
db.client.Close()
}
// prunes node-specific data periodically
func (db *DB) deleteWorker() {
duration := time.Minute * time.Duration(db.config.Influxdb.DeleteInterval)
ticker := time.NewTicker(duration)