swarm/state: refactor InmemoryStore (#18143)

This commit is contained in:
Anton Evangelatov
2018-11-21 14:36:56 +01:00
committed by GitHub
parent 3fd87f2193
commit 4c181e4fb9
5 changed files with 24 additions and 123 deletions

View File

@ -169,7 +169,7 @@ func (d *Delivery) handleRetrieveRequestMsg(ctx context.Context, sp *Peer, req *
go func() {
chunk, err := d.chunkStore.Get(ctx, req.Addr)
if err != nil {
log.Warn("ChunkStore.Get can not retrieve chunk", "err", err)
log.Warn("ChunkStore.Get can not retrieve chunk", "peer", sp.ID().String(), "addr", req.Addr, "hopcount", req.HopCount, "err", err)
return
}
if req.SkipCheck {