From 3696d7dedb045874d082fbb044804902e29fe356 Mon Sep 17 00:00:00 2001 From: Shihao Xia Date: Fri, 17 Dec 2021 18:35:24 -0500 Subject: [PATCH] fix potential goroutine leaks Signed-off-by: Shihao Xia --- tsdb/wal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/wal.go b/tsdb/wal.go index 05661779f..2b9f117aa 100644 --- a/tsdb/wal.go +++ b/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(), }