Browse Source

fix potential goroutine leaks

Signed-off-by: Shihao Xia <charlesxsh@hotmail.com>
pull/10056/head
Shihao Xia 3 years ago
parent
commit
3696d7dedb
  1. 2
      tsdb/wal.go

2
tsdb/wal.go

@ -190,7 +190,7 @@ func OpenSegmentWAL(dir string, logger log.Logger, flushInterval time.Duration,
flushInterval: flushInterval,
donec: make(chan struct{}),
stopc: make(chan struct{}),
actorc: make(chan func() error, 1),
actorc: make(chan func() error, 2),
segmentSize: walSegmentSizeBytes,
crc32: newCRC32(),
}

Loading…
Cancel
Save