From e0b33a7a2869a3bf04036d72620e3e635984d03e Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Fri, 17 Mar 2017 10:16:55 +0100 Subject: [PATCH] Remove leftover signaling channels from headBlock --- head.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/head.go b/head.go index e641455ed..43290a877 100644 --- a/head.go +++ b/head.go @@ -55,10 +55,6 @@ type headBlock struct { metamtx sync.RWMutex meta BlockMeta - - updatec chan struct{} - stopc chan struct{} - donec chan struct{} } func createHeadBlock(dir string, seq int, l log.Logger, mint, maxt int64) (*headBlock, error) { @@ -141,9 +137,6 @@ func (h *headBlock) inBounds(t int64) bool { // Close syncs all data and closes underlying resources of the head block. func (h *headBlock) Close() error { - close(h.stopc) - <-h.donec - // Lock mutex and leave it locked so we panic if there's a bug causing // the block to be used afterwards. h.mtx.Lock()