Commit Graph

165 Commits

Author SHA1 Message Date
Cole Brown
78cd2c5abd Implement error retry logic for transactions 2018-08-27 18:20:29 -04:00
Cole Brown
b550e5b2c6 Mutex hat pattern 2018-08-27 18:20:29 -04:00
Cole Brown
7e3363eeb4 Remove redundant channel from ttlmanager 2018-08-27 18:20:29 -04:00
Cole Brown
785b890ecb Only lock critical section 2018-08-27 18:20:29 -04:00
Cole Brown
be8ee63ab9 Remove pure badger impl of AddrBook 2018-08-27 18:20:29 -04:00
Cole Brown
fe121a4c3e Clarify comment for tick function 2018-08-27 18:20:29 -04:00
Cole Brown
cfbbb58a31 Document and clean AddrSubManager 2018-08-27 18:20:29 -04:00
Cole Brown
4a521e2e3b Update AddrManagerDatastore to require a Batching Datastore 2018-08-27 18:20:29 -04:00
Cole Brown
3778829de8 Abstract Peerstore tests, fix bugs 2018-08-27 18:20:29 -04:00
Cole Brown
c446ba70fe Add NewPeerstoreDatastore 2018-08-27 18:20:29 -04:00
Cole Brown
8d316aaa95 Clean tests 2018-08-27 18:20:29 -04:00
Cole Brown
00793e6244 Move Peers from Peerstore to AddrBook 2018-08-27 18:20:29 -04:00
Cole Brown
e8fbef6e78 Update native badger impl to support Peers 2018-08-27 18:20:29 -04:00
Cole Brown
95bb7b50ac Instrument DatastoreAddrManager with AddrSubManager 2018-08-27 18:20:29 -04:00
Cole Brown
5f74828c53 Flatten loops 2018-08-27 18:20:29 -04:00
Cole Brown
299007e9ca Break nesting via continues 2018-08-27 18:20:29 -04:00
Cole Brown
a43315d19c Use mutex hat pattern 2018-08-27 18:20:29 -04:00
Cole Brown
718adac0a2 Use NewAddrSubManager 2018-08-27 18:20:29 -04:00
Cole Brown
0b863436d8 Extract subscription manager from AddrManager 2018-08-27 18:20:29 -04:00
Cole Brown
7e46530328 Don't export ttl manager functions 2018-08-27 18:20:29 -04:00
Cole Brown
2d0ebcedd7 Accept parent ctx in constructor, simplify TTL loop 2018-08-27 18:20:29 -04:00
Cole Brown
04773c03ee goimports file 2018-08-27 18:20:29 -04:00
Cole Brown
ba6ac2671b Implement and test Datastore-backed AddrManager 2018-08-27 18:20:29 -04:00
Cole Brown
d06a57e781 Rename AddrManagerBadger -> BadgerAddrManager 2018-08-27 18:20:29 -04:00
Cole Brown
8fba05add1 Implement naive benchmark 2018-08-27 18:20:29 -04:00
Cole Brown
49769cb606 Implement badger backed addr manager, add to tests 2018-08-27 18:20:29 -04:00
Cole Brown
1016f6e956 Finish initial pass (sans stream) of addr manager 2018-08-27 18:20:29 -04:00
Cole Brown
b637498caf WIP: Begin work on a native badger peerstore 2018-08-27 18:20:29 -04:00
Cole Brown
0630ec7b05 Add simple benchmarking for peerstore 2018-08-27 18:20:29 -04:00
Steven Allen
4d62f4830a gx publish 1.4.24 2018-08-21 17:08:28 -07:00
Steven Allen
3a59fa1e00 gx publish 1.4.23 2018-08-08 18:49:47 -07:00
Steven Allen
49898a5f59 gx publish 1.4.22 2018-06-26 16:23:27 -07:00
Steven Allen
ccd2a0abe3 gx publish 1.4.21 2018-06-25 17:15:46 -07:00
Steven Allen
8363aa9ac6 gx publish 1.4.20 2018-06-08 22:28:48 -07:00
Steven Allen
b71d80cdd0 gx publish 1.4.19 2018-06-08 20:23:17 -07:00
Steven Allen
60a83a6ca3
Merge pull request #25 from libp2p/feat/refactor
gx publish 1.4.16
2018-06-06 07:20:37 +00:00
Steven Allen
9d8e49b726 gx publish 1.4.18 2018-06-04 18:01:38 -07:00
Steven Allen
2eaffe7319 update deps 2018-06-04 18:01:20 -07:00
Steven Allen
7ac092e7f7 Merge branch 'gx/update-og4qoy' 2018-04-16 13:36:07 +09:00
Steven Allen
83d66257b3 gx publish 1.4.17 2018-04-16 13:29:47 +09:00
Steven Allen
07cda98963
Merge pull request #27 from libp2p/feat/inline-pk
add support for extracting inlined public keys
2018-04-16 04:27:22 +00:00
Steven Allen
edb4024c24 gx publish 1.4.16 2018-04-16 13:25:45 +09:00
Steven Allen
3f5b1a304a support extracting inlined public keys
Technically, the caller can do this but this is more convenient.
2018-04-16 13:25:21 +09:00
Steven Allen
2c122745dc gx publish 1.4.15 2018-01-31 18:47:31 -08:00
Steven Allen
54c3d5cb2e
Merge pull request #23 from libp2p/fix/technically-not-broken
we no longer use maps
2018-01-27 17:39:41 +00:00
Steven Allen
9c4ac72897 we no longer use maps
This technically worked, but was extremely misleading.
2018-01-26 20:31:11 -08:00
Steven Allen
f0e2dcd6b4 gx publish 1.4.14 2018-01-19 20:51:09 -08:00
Steven Allen
634fac3a38 gx publish 1.4.13 2018-01-19 17:46:19 -08:00
Steven Allen
020aa74b6e
Merge pull request #22 from Arceliar/memusage
Memory usage
2018-01-17 18:26:59 +00:00
Arceliar
83cd5386b1 Preallocate maps and remove extra cleanup line. 2018-01-17 08:06:35 -06:00