vyzo
af2cb17f80
read/write protocol lock
2019-04-27 22:15:45 +03:00
Steven Allen
b496ee5433
Merge pull request #71 from libp2p/feat/optimize-mem
...
optimize peerstore memory
2019-04-23 09:41:50 -07:00
Steven Allen
b94490421d
peerstore: bump number/size of interned protocol names
...
512 * 256 (max path length on many systems) = 128KiB
2019-04-23 09:36:39 -07:00
Steven Allen
1017515eca
Merge pull request #72 from libp2p/fix/unmarshal-peer-id
...
fix unmarshalling of peer IDs
2019-04-23 09:29:43 -07:00
Steven Allen
926321cd88
fix unmarshalling of peer IDs
2019-04-23 00:59:28 -07:00
Steven Allen
b65b48dbe1
intern protocol names
...
Ideally, we'd store a bitmap. But we'll have to think through how we want that
to play out with the datastore-backed peerstore (maybe move the `*Protocols`
methods down to the backend implementation?).
2019-04-23 00:54:18 -07:00
Steven Allen
aae59b7403
optimize memory of in-memory peerstore
2019-04-23 00:10:05 -07:00
Raúl Kripalani
ab02c26ae9
Merge pull request #70 from libp2p/fix/err-handling
...
fix error handling in UpdateAddrs: return on error
2019-04-16 22:16:09 +01:00
Raúl Kripalani
662be3b0a4
fix error handling: return on err.
2019-04-16 22:11:14 +01:00
Steven Allen
deb2163a68
Merge pull request #67 from libp2p/fix/keep-temp-addresses
...
keep temp addresses for 2 minutes
2019-04-12 10:32:51 -07:00
Steven Allen
30a9a2acf4
keep temp addresses for 2 minutes
...
Unfortunately, services like the DHT are slow enough that we can forget
addresses before we successfully dial.
2019-04-11 21:51:01 -07:00
Raúl Kripalani
eaba0f4384
farewell gx; thanks for serving us well.
2019-04-11 21:11:16 +01:00
Yusef Napora
cfad1e67a3
update readme badges
2019-04-09 11:56:53 -04:00
Matt Joiner
9ae3eaaeb0
Add to comment on KeyBook.PrivKey ( #64 )
2019-04-08 18:11:34 +10:00
Matt Joiner
d9cfa764ad
Implement fmt.Stringer for PeerInfo
2019-03-11 14:16:16 +11:00
Raúl Kripalani
d2a21b6d4a
Merge pull request #61 from libp2p/b32migrate
...
migrate to multiformats/go-base32
2019-02-28 18:47:45 +00:00
Raúl Kripalani
2c5bc31271
migrate to multiformats/go-base32.
2019-02-28 18:34:51 +00:00
Raúl Kripalani
80f2a8c5e1
add go.mod, update travis
2019-02-28 18:33:05 +00:00
Raúl Kripalani
19a5811ba3
update ipfs deps post-gomodding them.
2019-02-28 17:59:54 +00:00
Raúl Kripalani
5866c85fe6
add go.mod and update travis.
2019-02-28 17:04:29 +00:00
Hector Sanjuan
e2df3e49ea
Merge pull request #59 from libp2p/gx/update-qtg73x
...
gx publish 2.0.19
2019-02-26 20:19:24 +00:00
Hector Sanjuan
2d1f3d424c
gx publish 2.0.19
2019-02-26 19:57:18 +00:00
Hector Sanjuan
672b6e0248
Merge pull request #57 from libp2p/gx/update-az3v0j
...
gx publish 2.0.18
2019-02-26 17:40:31 +00:00
Hector Sanjuan
4d8a43fb57
gx publish 2.0.18
2019-02-26 16:48:25 +00:00
Raúl Kripalani
c123410c64
Merge pull request #47 from raulk/feat/pstore-ds-gc
...
pstoreds: migrate from strict TTL to GC-based expiry.
2019-02-22 14:43:47 +00:00
Raúl Kripalani
8db09c59cf
pstore.Close(): return errors from children.
2019-02-22 14:39:51 +00:00
Raúl Kripalani
4806c742b5
pstoreds: remove dirty flag when deleting from db.
2019-02-21 19:31:19 +00:00
Raúl Kripalani
87fab3950d
pstoreds: switch protobuf compilation to gogofaster.
2019-02-19 17:41:14 +00:00
Raúl Kripalani
c5e3e4d647
Merge branch 'master' into feat/pstore-ds-gc
2019-02-19 11:51:28 +00:00
Raúl Kripalani
135471f291
add io.Closer interface and implementation to Peerstore.
2019-02-19 11:45:32 +00:00
Jakub Sztandera
985bc5953b
gx publish 2.0.17
2019-02-18 18:45:40 +01:00
Raúl Kripalani
4e7d772db3
pstoreds: remove async flushing on read: now sync.
2019-02-18 16:35:48 +00:00
Jakub Sztandera
7e45a1ab22
gx publish 2.0.16
2019-02-18 15:13:52 +01:00
Jakub Sztandera
7bb755535b
gx publish 2.0.15
2019-02-18 15:03:04 +01:00
Raúl Kripalani
25f53120b8
gc: drain async flush queue with grace period before closing.
2019-02-15 18:44:05 +00:00
Raúl Kripalani
d7e9f78273
increment WaitGroups before spawning goroutines.
2019-02-15 18:43:34 +00:00
Steven Allen
904d93c0f5
gx publish 2.0.14
2019-02-07 15:27:51 -08:00
Raúl Kripalani
86f1626c51
fix tests; run lookahead after initial delay.
2019-02-06 16:05:02 +00:00
Raúl Kripalani
5d5a55baa5
update go-datastore, go-ds-leveldb, go-ds-badger.
2019-02-06 16:05:02 +00:00
Raúl Kripalani
25e4df45aa
change default purge interval to 2 hours.
2019-02-06 14:43:10 +00:00
Raúl Kripalani
e16cac9f5e
make addrsRecord.Clean() private.
2019-02-06 14:40:51 +00:00
Raúl Kripalani
3966498df4
improve docs; cyclic batch arg; validations.
2019-02-06 14:36:51 +00:00
Raúl Kripalani
fec786e9ef
pstore ds: make gc lookahead window optional.
2019-02-06 09:35:10 +00:00
Raúl Kripalani
9da98d7fcf
factor out cyclic batch into file; and gc into type.
2019-02-05 17:53:50 +00:00
Raúl Kripalani
20a0dc649d
adopt new ds.Write interface.
2019-02-05 16:53:23 +00:00
Raúl Kripalani
d88042c422
improve code readability.
2019-02-05 16:52:27 +00:00
Raúl Kripalani
0baddf577e
Merge branch 'master' into feat/pstore-ds-gc
2019-02-05 16:15:11 +00:00
Raúl Kripalani
1e2fd43772
Merge pull request #52 from raulk/master
...
Add unit test to verify AddAddr doesn't shorten TTL
2019-02-05 15:09:02 +00:00
Raúl Kripalani
f0eb25b3c5
pstore ds: enforce order in gc queries.
2019-02-05 15:07:30 +00:00
Raúl Kripalani
6959c64874
add unit test to verify AddAddr doesn't shorten TTL.
2019-01-23 13:13:11 +00:00