Commit Graph

120 Commits

Author SHA1 Message Date
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
Steven Allen
1a0684bd67 add a test for UpdateAddrs 2018-01-04 13:01:24 -08:00
Steven Allen
f6bb5a31c1 add method to atomically update TTLs
This allows one to find all addresses with a given TTL and update them to have a
new TTL.
2018-01-04 13:00:37 -08:00
Steven Allen
420131a845 mark test helpers 2018-01-04 12:59:43 -08:00
Whyrusleeping
8b5c1b16c0
Merge pull request #17 from libp2p/feat/oom-me-not
more effectively free memory
2017-12-07 21:15:19 +01:00
Steven Allen
e377d8bf00 ci: don't test on osx
(slow)
2017-12-05 18:11:33 -08:00
Steven Allen
76e427fca8 add test for multiple subscriptions 2017-12-05 18:03:03 -08:00
Steven Allen
dd7efed6ee faster duplicate check in AddrStream 2017-12-05 18:02:55 -08:00
Steven Allen
eaa5f7e9e7 preallocate AddrStream buffer 2017-12-05 18:02:55 -08:00
Steven Allen
b99e11911a more effectively free memory
* Completely free memory related to subscriptions when all subscribers go away.
* Completely free peer address records when they all expire.
* Don't copy the *entire* subscription array when unsubscribing from a peer
  address stream.
2017-12-05 18:02:44 -08:00
Steven Allen
9f2b163f00
Merge pull request #18 from libp2p/gx/update-5osgb9
gx: update go-multihash
2017-12-04 23:37:09 +00:00
Steven Allen
785207bc4e
Merge pull request #16 from libp2p/kevina/travisci
Update Travis CI to use standard test script and go 1.9.x.
2017-12-04 23:35:43 +00:00
Steven Allen
89838b9577 gx publish 1.4.10 2017-12-03 20:37:15 -08:00
Kevin Atkinson
c186c2672e Disable sudo in Travis CI. 2017-11-17 23:28:02 -05:00
Kevin Atkinson
59b91b10dc Run make deps in install step instead of before_install. 2017-11-17 22:45:45 -05:00
Kevin Atkinson
ba9f095b69 Update Travis CI to use standard test script and go 1.9.x.
This also switches from goveralls to codecov.
2017-11-17 03:09:24 -05:00
Steven Allen
b2087a91b1 gx: import deps 2017-07-19 00:35:08 -07:00
Jeromy
10405862a7 gx publish 1.4.9 2017-07-11 10:55:25 -07:00
Lars Gierth
744a149e48 gx publish 1.4.8 2017-04-28 04:17:12 +02:00
Lars Gierth
a1adbf426a Merge pull request #14 from libp2p/feat/p2paddr
Add func to construct /ipfs addrs from PeerInfo
2017-04-28 04:12:13 +02:00
Lars Gierth
2ce0773687 Allow for parsing otherwise empty /ipfs addrs, improve tests 2017-04-28 02:49:06 +02:00
Lars Gierth
6a60f4058e Add func to construct /ipfs addrs from PeerInfo 2017-04-28 02:49:04 +02:00
Jeromy
17c3462143 gx publish 1.4.7 2017-03-31 23:08:33 -07:00
Jeromy
968d9c9149 add method to parse /ipfs/ addresses into a peerinfo 2017-03-31 23:08:23 -07:00
Jeromy
aa7305d39f remove go-ipfs-util dep 2017-03-23 18:57:39 -07:00
Jeromy
e54fbe83d4 gx publish 1.4.6 2017-03-23 18:50:12 -07:00
Jeromy
5fbc624d4a gx publish 1.4.5 2017-03-21 16:25:59 -07:00
Jeromy
1ee2d0de81 gx publish 1.4.4 2017-03-05 18:22:35 -08:00
Jeromy
9b13cae8e0 gx publish 1.4.3 2017-02-03 12:51:23 -08:00
Jeromy
7842b6862f dont commit with deps rewritten 2017-02-03 12:49:59 -08:00
Jeromy
5ea1774aba gx publish 1.4.2 2017-02-03 10:32:21 -08:00
Jeromy
2969d77b0f gx publish 1.4.1 2017-02-01 22:47:04 -08:00
Lars Gierth
15bf35eef9 Merge pull request #1 from libp2p/feature/standardize-readme
Standardized Readme
2017-01-06 23:30:43 +01:00
Jeromy
63b884f507 gx publish 1.4.0 2016-11-17 16:49:55 -08:00
Jeromy Johnson
ab348e7915 Merge pull request #12 from libp2p/feat/set-protos
Add SetProtocols method to peerstore
2016-11-17 16:47:14 -08:00
Jeromy
f759b0e611 Add SetProtocols method to peerstore
This allows us to overwrite known protocols and remove potentially
unwanted ones during a full knowledge update. The current AddProtocol
just appends to the existing set.
2016-11-17 15:49:21 -08:00