Commit Graph

155 Commits

Author SHA1 Message Date
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
Arceliar
6eedcc1da4 use []expiringAddr instead map[string]expiringAddr in addr_manager.go 2018-01-16 17:36:29 -06:00
Steven Allen
070490797c gx publish 1.4.12 2018-01-06 15:40:02 -08:00
Steven Allen
006e2c92f1
Merge pull request #21 from libp2p/feat/variable-ttls
make it possible to modify non-permanent TTLs
2018-01-05 21:07:24 +00:00
Steven Allen
d2a1a281f2 make it possible to modify non-permanent TTLs
useful for testing, at the very least.
2018-01-04 19:30:22 -08:00
Steven Allen
96cec5af5a gx publish 1.4.11 2018-01-04 18:28:56 -08:00
Steven Allen
db522971de
Merge pull request #20 from libp2p/feat/shrink-addrs
add a method for atomically updating TTLs
2018-01-05 02:27:07 +00:00
Steven Allen
9cb6ba9eb7 improve UpdateTTLs test coverage 2018-01-04 18:23:02 -08:00
Steven Allen
62cbfac7c6 spelling 2018-01-04 18:15:01 -08:00
Steven Allen
07712d63e3 fix PerminentAddrTTL comment 2018-01-04 16:32:58 -08:00
Steven Allen
b53dd2e95e make all TTLs distinct
(also, make permanent TTLs actually permanent)
2018-01-04 14:51:36 -08:00