Merge pull request #213 from prometheus/fix/goroutine-leak-in-append-samples

Fix goroutine leak in leveldb.AppendSamples
This commit is contained in:
Bernerd Schaefer 2013-05-03 03:31:18 -07:00
commit 59e5ddeed3
1 changed files with 2 additions and 2 deletions

View File

@ -538,8 +538,8 @@ func (l *LevelDBMetricPersistence) AppendSamples(samples model.Samples) (err err
var (
fingerprintToSamples = groupByFingerprint(samples)
indexErrChan = make(chan error)
watermarkErrChan = make(chan error)
indexErrChan = make(chan error, 1)
watermarkErrChan = make(chan error, 1)
)
go func(groups map[model.Fingerprint]model.Samples) {