@cryptotaxi247 / kubo / commits / 182604c61

substitute with LedgerMap type

Brian Tiger Chow committed Sep 10, 2014 at 19:47 UTC 182604c61f74104e713a7cab985ecc9021961641
1 file changed +1 -1
bitswap/bitswap.go
+1 -1
@@ -44,7 +44,7 @@ type BitSwap struct {
44 // The Ledger has the peer.ID, and the peer connection works through net.
45 // Ledgers of known relationships (active or inactive) stored in datastore.
46 // Changes to the Ledger should be committed to the datastore.
47 - partners map[u.Key]*Ledger
47 + partners LedgerMap
48
49 // haveList is the set of keys we have values for. a map for fast lookups.
50 // haveList KeySet -- not needed. all values in datastore?