1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-02 12:20:03 +08:00

log unusual event

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
Brian Tiger Chow
2014-12-16 23:57:28 -08:00
committed by Juan Batiz-Benet
parent 2b60b641c4
commit e36d656632

View File

@ -65,7 +65,8 @@ func (e *Engine) taskWorker(ctx context.Context) {
}
block, err := e.bs.Get(nextTask.Entry.Key)
if err != nil {
continue // TODO maybe return an error
log.Warning("engine: task exists to send block, but block is not in blockstore")
continue
}
// construct message here so we can make decisions about any additional
// information we may want to include at this time.