Aarsh Shah
dd0775df6d
changes for the new interface
2020-05-11 13:07:08 +05:30
Aarsh Shah
7a58f873f4
peer supports any protocol
2020-05-08 12:10:14 +05:30
Steven Allen
785ee8c8fd
fix: handle nil peer IDs
...
Feels like Java all over again.
fixes #87
2020-04-05 23:05:41 -07:00
Yusef Napora
59abcf549d
Certified addresses ( #98 )
2020-03-06 12:07:36 +00:00
Raúl Kripalani
ad0faef7c7
make RemoveProtocols take the write lock. ( #90 )
2019-07-10 15:45:49 +01:00
Raúl Kripalani
3d3a10dd54
protobook: support removing protocols. ( #84 )
2019-06-19 23:53:07 +01:00
Steven Allen
0b5b389640
dep: switch to core ( #80 )
...
* dep: switch to core
Specifically, remove go-libp2p-{crypto,peer} deps.
* catch a few more usages of deprecated packages.
2019-05-31 14:51:16 +01:00
Steven Allen
fd3ea885ff
feat: improve protocol interning
...
This used to specify a max size/count but that was only because this logic was
shared between all peerstores (including the on-disk one). Now that:
1. This only applies to the in-memory one.
2. We never actually GC these.
We can just intern indefinitely.
2019-05-27 14:35:05 -07:00
vyzo
afca355218
index the peer ID strings directly to avoid copying the byte slice
2019-05-17 23:36:46 +03:00
vyzo
d340d2983e
cosmetics
2019-05-17 13:14:39 +03:00
vyzo
a9e3f07759
global interned protocol table
2019-05-17 12:47:07 +03:00
vyzo
5ed17f0b79
embed lock in segment
2019-05-17 12:37:46 +03:00
vyzo
08caa87351
refactor protocol functionality into ProtoBook
2019-05-17 12:33:33 +03:00