mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 15:58:13 +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.
|
||
|---|---|---|
| .. | ||
| message | ||
| network | ||
| notifications | ||
| strategy | ||
| testnet | ||
| bitswap_test.go | ||
| bitswap.go | ||