Håvard Anda Estensen
21dc42bd72
chore: preallocate slices ( #1842 )
...
* Preallocate slices
* Move slice allocs to right before they're used
* Revert slice assignments to append
* Don't preallocate for tests or deprecated code
* Don't preallocate too much
2022-11-06 04:48:40 -08:00
Marten Seemann
4623690009
switch from github.com/libp2p/go-libp2p-core to core
2022-08-17 17:13:02 +03:00
Marco Munizaga
bedce2290d
backoff: fix flaky tests in backoff cache ( #1516 )
...
* Use mock clock to test time based properties of backoff cache
* Use mockclock library
2022-05-24 05:51:18 -07:00
Marten Seemann
3effab121a
switch from github.com/libp2p/go-libp2p-swarm to p2p/net/swarm
2022-04-21 13:35:04 +01:00
Marten Seemann
fc2c34e045
switch from github.com/libp2p/go-libp2p-blankhost to p2p/host/blank
2022-04-19 14:41:06 +01:00
Marten Seemann
d5f4910af7
rename p2p/discovery/routing package, run go mod tidy
2022-01-09 22:17:04 +04:00
Gus Eggert
6443c8b2e7
feat: plumb peerstore contexts changes through ( #75 )
2021-11-10 15:50:01 -05:00
Marten Seemann
4e1ef58c54
remove deprecated types
2021-07-22 21:16:16 +02:00
David Florness
4c3a313b6d
Put period at end of sentence
2020-06-05 14:49:30 -06:00
Adin Schmahmann
bd1a26b08f
merge in discovery based content routing changes. moved mock discovery to a new file.
2019-10-25 11:52:11 -04:00
Adin Schmahmann
702512dd33
added discovery options to discovery based content routing
2019-09-06 17:34:01 -04:00
Adin Schmahmann
df6fbe1008
added discovery based content routing
2019-09-06 17:09:42 -04:00
Raúl Kripalani
83826f44e3
Consolidate abstractions and core types into go-libp2p-core ( #24 )
2019-05-26 16:04:17 +01:00
vyzo
383cb2a583
fix test
2019-05-16 18:44:07 +03:00
vyzo
a5bbace17f
allow user-spceified TTL in routing advertisements
2019-05-16 18:30:16 +03:00
vyzo
cfdf4178ff
use 3hrs as routing advertisement ttl
2019-04-13 23:12:56 +03:00
Raúl Kripalani
2662fe1311
clarify comment.
2019-02-14 18:08:24 +00:00
vyzo
250048d196
add a timeout to Provide in routing.Advertise
2019-02-14 19:54:59 +02:00
vyzo
5f26fd8e07
correctly encode ns to CID
2019-02-14 12:52:56 +02:00
vyzo
96c2f75222
use 6hrs as ttl for routing based advertisements
2019-02-12 10:44:03 +02:00
vyzo
25577e94fd
document the use of SHA256 as the cid hash function
2018-10-18 14:15:52 +03:00
vyzo
0cd9c1bf2d
test and gx package update
2018-10-18 14:12:18 +03:00
vyzo
6e5e92862d
niceties and best practices
2018-10-18 12:59:01 +03:00
vyzo
d0766bb0ac
discovery implementation using ContentRouting
2018-10-12 14:56:09 +03:00