mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-07 01:08:08 +08:00
A nice invariant for bitswap sessions:
Senders and receivers can trust that messages do not contain
duplicate blocks or duplicate keys. Backing the message with a
map enforces this invariant.
This comes at the cost of O(n) getters.
|
||
|---|---|---|
| .. | ||
| internal/pb | ||
| message_test.go | ||
| message.go | ||