Steven Allen
a491d36013
gx publish 2.0.4
2018-10-10 11:29:57 +01:00
Steven Allen
3e0c5fae56
gx publish 2.0.3
2018-10-05 13:38:44 -07:00
Raúl Kripalani
e18b128538
add go-ds-leveldb gx dep for tests.
2018-10-04 22:11:51 +01:00
Raúl Kripalani
4e2e2de65f
ds key encoding: b58 => b32 (no padding).
2018-10-04 10:51:57 +01:00
Raúl Kripalani
61b5355499
run tests against multiple datastores.
...
leveldb disabled for now, until TTL shim is implemented.
2018-10-04 10:50:45 +01:00
Steven Allen
2a27e91a67
Merge pull request #39 from libp2p/fix/allocations
...
reduce allocations and garbage collect the in-memory peerstore
2018-10-03 17:43:17 -07:00
Steven Allen
6daee68364
memoryAddrBook: document gc precondition
2018-10-03 17:42:54 -07:00
Steven Allen
e3a2970d93
add garbage collection for in-memory peerstore
...
There are better ways to do this but pausing dialing once an hour likely isn't
going to break anything and is the simplest approach.
2018-10-02 10:49:55 -07:00
Steven Allen
6d5cedf098
revert to storing peer addresses in a map
...
We switched to a slice to reduce the amount of memory the peerstore ended up
taking up unfortunately, this really killed us in allocations. Looking at
go-ipfs profiles, I'm worried that memory fragmentation is killing us so I'd
like to revert to the old behavior.
Note: The real solution here is dealing with "address abusers".
2018-10-01 22:16:08 -07:00
Raúl Kripalani
0df1488a3f
Merge pull request #37 from raulk/ds-backed-keybook-metadata
...
Datastore-backed implementations of KeyBook and PeerMetadata
2018-09-29 20:42:58 +01:00
Raúl Kripalani
7c46c1e806
gx import libp2p/go-buffer-pool.
2018-09-28 19:49:49 +01:00
Raúl Kripalani
3e80eb1873
review comments.
2018-09-28 18:47:41 +01:00
Raúl Kripalani
dd3cb20421
add explicit import aliases.
2018-09-28 14:18:05 +01:00
Raúl Kripalani
1b72b920ed
datastore-backed impls of KeyBook and PeerMetadata.
2018-09-28 14:04:52 +01:00
Raúl Kripalani
dbbd2fd262
Merge pull request #36 from libp2p/txn-err
...
Adapt peerstore for ds.NewTransaction() now returning error
2018-09-27 21:23:09 +01:00
Raúl Kripalani
cf1552629a
gx publish 2.0.2
2018-09-27 21:01:06 +01:00
Raúl Kripalani
ec982d5c1d
gx update.
2018-09-27 21:00:39 +01:00
Raúl Kripalani
196ad55260
ds.NewTransaction() can now return an error.
2018-09-27 20:59:57 +01:00
Raúl Kripalani
56307a5e29
fix links in readme.
2018-09-27 20:59:57 +01:00
Steven Allen
eef8402e04
gx publish 2.0.1
2018-09-24 05:10:15 -07:00
Raúl Kripalani
6f9a3c21c8
Merge pull request #34 from libp2p/ttldatastore
...
Store-native TTL management
2018-09-20 14:10:40 +01:00
Raúl Kripalani
0f81bdf419
introduce struct for persisted value.
2018-09-18 19:01:24 +01:00
Raúl Kripalani
5b9ad98cc2
remove noop Stop() in address book.
2018-09-18 19:00:07 +01:00
Raúl Kripalani
4b2c1212e7
add a test and fix broken logic.
2018-09-14 18:27:23 +01:00
Raúl Kripalani
3a4d8096cf
remove unnecessary return values.
2018-09-14 17:35:49 +01:00
Raúl Kripalani
7976022e14
gx bubble up go-datastore and go-ds-badger.
2018-09-14 12:35:17 +01:00
Raúl Kripalani
9194e8fbdf
Merge pull request #33 from raulk/txndatastore
...
Migrate to ds.TxnDatastore, optimisations++, cache changes, benchmarks
2018-09-14 10:34:16 +01:00
Raúl Kripalani
b75ed37f2b
reintroduce import prefixes.
2018-09-13 16:10:14 +01:00
Raúl Kripalani
7c5cf50d9b
adjust ttl tests as badger doesn't support sub-second ttl.
2018-09-13 16:09:32 +01:00
Raúl Kripalani
23be462e82
Merge branch 'txndatastore' into ttldatastore
2018-09-13 16:02:09 +01:00
Raúl Kripalani
7e645fa115
do not prettify cache keys (peer ids).
2018-09-13 15:33:30 +01:00
Raúl Kripalani
afc9ee92b0
performance optimisation round.
2018-09-13 15:33:30 +01:00
Raúl Kripalani
9277207b35
remove deprecated ttlManager.
2018-09-13 12:49:03 +01:00
Raúl Kripalani
80fc9f03ca
migrate from bespoke TTL manager to db-managed TTLs.
2018-09-13 12:21:30 +01:00
Raúl Kripalani
622589ab31
attempt to fix time-dependent tests in CI.
2018-09-13 10:35:03 +01:00
Raúl Kripalani
95cce50f15
hopefully fix intermittent time-dependent test failure.
2018-09-12 13:53:10 +01:00
Raúl Kripalani
c7d99489fd
address review comments.
2018-09-12 13:53:10 +01:00
Raúl Kripalani
4e0c2169c7
Resolve TODO.
2018-09-12 13:42:26 +01:00
Raúl Kripalani
4037390c42
increase test coverage.
2018-09-11 18:17:27 +01:00
Raúl Kripalani
7ae2621803
small fixes.
2018-09-11 14:42:19 +01:00
Raúl Kripalani
eb2575505d
fix bug in PeersWithAddrs().
2018-09-11 14:14:56 +01:00
Raúl Kripalani
1b410c7294
Merge branch 'master' into txndatastore
2018-09-11 14:13:14 +01:00
Raúl Kripalani
903aa12603
check cache in ClearAddrs and perform targeted delete.
2018-09-11 12:43:36 +01:00
Raúl Kripalani
03ee26fd4f
change cache layout, now peer.ID => []ma.Multiaddr.
2018-09-11 11:48:23 +01:00
Raúl Kripalani
ca6f050174
add baseline benchmarks.
2018-09-10 19:59:27 +01:00
Steven Allen
dcb3a93288
gx: remove temporary files from published version
2018-09-07 22:00:47 -07:00
Raúl Kripalani
ee1756a6b3
Merge pull request #32 from raulk/keybook-tests
...
* Introduce tests for KeyBook to increase coverage.
* Change usages of []peer.ID to IDSlice, which supports sorting.
* Restructure AddrBook tests into subtests.
* Import aliases.
2018-09-07 19:01:48 +01:00
Raúl Kripalani
1924b49047
gx publish 2.0.0
2018-09-07 18:47:01 +01:00
Raúl Kripalani
1c25f160a1
normalise import aliases.
2018-09-07 18:46:23 +01:00
Raúl Kripalani
08de02b668
regroup test utils; remove unused function.
2018-09-07 18:45:58 +01:00