mirror of https://github.com/oxen-io/lokinet
use a std::map instead of a std::unordered_map for holding message buffers by their sequentially increasing message id.
when retransmissions happen, they will be executed in a deterministic order by their delivery id. this reduces the jitter from delayed message delivery on link layer as with an unordered map the order of iteration is "random", so when we iterate all messages for retransmission we do it lowest id first (the messages queued first).pull/1535/head
parent
74f707ee01
commit
e6ac7e721d
Loading…
Reference in New Issue