Steven Allen
9c4ac72897
we no longer use maps
...
This technically worked, but was extremely misleading.
2018-01-26 20:31:11 -08: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
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
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
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
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
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
639e4e1e92
gx publish 1.3.0
2016-10-04 18:43:44 -07:00
Jeromy
c61bb7e8a3
update package location
2016-10-04 18:05:58 -07:00
Jeromy
c87d50ff49
use context from stdlib
2016-10-04 16:19:16 -07:00
Jeromy
350c2ce7c2
extract peerstore from peer package
2016-05-31 11:31:50 -07:00
Jeromy
3e0ab3fc11
bugfix on sub before peer entry
2016-05-31 10:02:59 -07:00
Jeromy
ffd762afc8
do sorting on addresses before sending them to stream
2016-05-31 10:01:17 -07:00
Jeromy
825dac628c
Add peerstore method to subscribe to new addresses
2016-05-31 10:01:17 -07:00
Jeromy
90429be98a
don't use string method for key of maps
2016-05-16 21:23:25 -07:00
Jeromy
84426bca9b
don't panic on being passed nil addresses
2016-05-16 17:04:08 -07:00
Lars Gierth
6a447a0b87
Undo import path rewrites
2016-04-15 20:27:15 -07:00
Jeromy
e0edada87e
update version of go-multiaddr
2016-03-03 13:03:24 -08:00
Jeromy
cc44d77c27
path rewrites
2016-01-04 05:45:58 -08:00
Jeromy
c1161d225e
WIP
2015-12-06 23:11:16 -08:00
Jeromy
4f26d5927d
migrate to gx namespace
2015-11-18 16:11:24 -08:00
Jeromy
bda6cac7b4
fixes for sha3
2015-11-15 18:28:35 -08:00
Jeromy
096f68c608
more vendoring
2015-11-15 11:56:01 -08:00
Jeromy
5e7bc7b555
extract from 0.4.0
2015-11-11 16:19:51 -08:00
Juan Batiz-Benet
e41f12f9ea
move to p2p dir
2015-09-30 18:42:55 -04:00