diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-08-15 00:44:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 00:44:17 +0800 |
commit | 2403656373f1250e3668227bd9fc94e6e95412b9 (patch) | |
tree | 53ddfebc6a77ea7b8a3f7ac81c58baa8168f729e /swarm/storage/pyramid.go | |
parent | ef0edc6e32d98d2fca54076f38cb317f43704900 (diff) | |
parent | 133de3d80659680dc051065cb3baddd92a4e45c5 (diff) | |
download | go-tangerine-2403656373f1250e3668227bd9fc94e6e95412b9.tar go-tangerine-2403656373f1250e3668227bd9fc94e6e95412b9.tar.gz go-tangerine-2403656373f1250e3668227bd9fc94e6e95412b9.tar.bz2 go-tangerine-2403656373f1250e3668227bd9fc94e6e95412b9.tar.lz go-tangerine-2403656373f1250e3668227bd9fc94e6e95412b9.tar.xz go-tangerine-2403656373f1250e3668227bd9fc94e6e95412b9.tar.zst go-tangerine-2403656373f1250e3668227bd9fc94e6e95412b9.zip |
Merge pull request #14951 from egonelbre/megacheck_swarm
swarm: fix megacheck warnings
Diffstat (limited to 'swarm/storage/pyramid.go')
-rw-r--r-- | swarm/storage/pyramid.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/swarm/storage/pyramid.go b/swarm/storage/pyramid.go index 79e1927b9..74e00a497 100644 --- a/swarm/storage/pyramid.go +++ b/swarm/storage/pyramid.go @@ -178,10 +178,9 @@ func (self *PyramidChunker) processor(pend, swg *sync.WaitGroup, tasks chan *Tas if swg != nil { swg.Add(1) } - select { - case chunkC <- &Chunk{Key: hash, SData: data, wg: swg}: - // case <- self.quitC - } + + chunkC <- &Chunk{Key: hash, SData: data, wg: swg} + // TODO: consider selecting on self.quitC to avoid blocking forever on shutdown } if depth+1 < len(results.Levels) { delete(results.Levels[depth+1], task.Index/(pow/self.branches)) |