mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-03 09:22:49 +00:00
test
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
This commit is contained in:
parent
e89f9fe2a4
commit
b14eebcdf3
1 changed files with 8 additions and 1 deletions
|
@ -222,7 +222,14 @@ func (bfs *Service) blockDownloader() {
|
|||
select {
|
||||
case <-bfs.ctx.Done():
|
||||
return
|
||||
case bfs.blocksCh <- b:
|
||||
default:
|
||||
err := bfs.enqueueBlock(b)
|
||||
if err != nil {
|
||||
bfs.log.Error("failed to enqueue block", zap.Uint32("index", b.Index), zap.Error(err))
|
||||
bfs.stopService(true)
|
||||
return
|
||||
}
|
||||
//case bfs.blocksCh <- b:
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue