swarm/network: do not use priority queue on deliver

This commit is contained in:
Anton Evangelatov 2019-03-11 14:46:33 +01:00
parent 35f34edced
commit db28927cce
2 changed files with 2 additions and 1 deletions

View file

@ -185,6 +185,7 @@ func (d *Delivery) handleRetrieveRequestMsg(ctx context.Context, sp *Peer, req *
if err != nil {
log.Warn("ERROR in handleRetrieveRequestMsg", "err", err)
}
osp.LogFields(olog.Bool("delivered", true))
return
}
osp.LogFields(olog.Bool("skipCheck", false))

View file

@ -154,7 +154,7 @@ func (p *Peer) Deliver(ctx context.Context, chunk storage.Chunk, priority uint8,
}
ctx = context.WithValue(ctx, "stream_send_tag", nil)
return p.SendPriority(ctx, msg, priority)
return p.Send(ctx, msg)
}
// SendPriority sends message to the peer using the outgoing priority queue