diff options
author | Egon Elbre <egonelbre@gmail.com> | 2017-08-09 01:34:35 +0800 |
---|---|---|
committer | Egon Elbre <egonelbre@gmail.com> | 2017-08-14 23:12:37 +0800 |
commit | 133de3d80659680dc051065cb3baddd92a4e45c5 (patch) | |
tree | cc67ede99634e335f8a07a5b0b084877cb8282d7 /swarm/storage/pyramid.go | |
parent | 6ca59d98f88d4b4cc8bdeb2f023ff8c1fa228c6f (diff) | |
download | go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.gz go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.bz2 go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.lz go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.xz go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.tar.zst go-tangerine-133de3d80659680dc051065cb3baddd92a4e45c5.zip |
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)) |