@cryptotaxi247 / kubo / commits / e36d65663

log unusual event

License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Dec 16, 2014 at 23:57 UTC e36d656632db4550b6e31bc8b270c11faef95e0d
1 file changed +2 -1
exchange/bitswap/decision/engine.go
+2 -1
@@ -65,7 +65,8 @@ func (e *Engine) taskWorker(ctx context.Context) {
65 }
66 block, err := e.bs.Get(nextTask.Entry.Key)
67 if err != nil {
68 - continue // TODO maybe return an error
68 + log.Warning("engine: task exists to send block, but block is not in blockstore")
69 + continue
70 }
71 // construct message here so we can make decisions about any additional
72 // information we may want to include at this time.