24 Commits

Author SHA1 Message Date
Adin Schmahmann
a4b38eebee feat(dht): provider records use multihashes instead of CIDs 2019-12-19 12:00:51 -05:00
Raúl Kripalani
31765355df
migrate to consolidated types. (#344) 2019-05-26 23:33:15 +01:00
Steven Allen
5bb50b8d68 providers: test partial GC 2019-04-18 16:31:05 -07:00
Steven Allen
b76de45edb providers: improve test coverage 2019-04-13 09:18:28 -07:00
Steven Allen
fbb29ea6b6 providers: optimize GC
1. Don't be n^2.
2. Don't bother walking the cache, just drop it.
2019-04-13 09:18:28 -07:00
Kevin Atkinson
a303c45371 gx update and fix code to use new Cid type 2018-09-11 21:54:47 -04:00
Steven Allen
87783c0ed0 better cancel/close after tests 2018-03-14 14:03:11 -07:00
Steven Allen
cc9c360ff2 fix: go1.9 monotonic time (for real this time)
* Also, test on go 1.9
2017-09-13 16:58:22 -07:00
Jakub Sztandera
ee1b670ec9
fix: go1.9 monotonic time is not symetric across serialization using == 2017-08-23 14:52:31 +02:00
Kevin Atkinson
a72dd86fa6 Enhance TestLargeProvidersSet. 2016-11-28 20:38:32 -05:00
Jeromy
6c8be4d4f0 update datastore and go-cid dependencies 2016-11-28 13:22:43 -08:00
Vasily Kolobkov
c12d86580b Test if datastore is checked upon cache miss on adding providers
License: MIT
Signed-off-by: Vasily Kolobkov <polezaivsani@openmailbox.org>
2016-11-16 15:51:40 +02:00
Jeromy
b17e206c81 use an iterator for provider key sweeping 2016-11-14 17:41:05 -08:00
Jeromy
044ea16a66 Use sync iterator and avoid strings.Split 2016-11-14 17:05:34 -08:00
Jeromy
85fe35e758 reduce overhead casting between ds.Keys and strings 2016-11-11 10:13:12 -08:00
Jeromy
6894f33507 update dependencies after package extraction funtime 2016-10-05 12:34:28 -07:00
Jeromy
1ac83501a2 fix providers code, cant use cids as lru keys 2016-09-30 10:56:47 -07:00
George Antoniadis
30d43d22e0 Fix dependencies 2016-09-02 20:21:23 +01:00
George Antoniadis
5f3e63aa46 Undo gx rewrites and add gx package.json 2016-08-21 17:18:58 +01:00
Jeromy
1bd98f05f4 use batching datastore for providers storage
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-26 10:48:25 -07:00
Jeromy
29c36b20d8 update go-datastore changes 0.1.2
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 22:40:57 -07:00
Jeromy
7c91e7bdd1 encode keys to datastore with base32 standard encoding
Fixes #2601

Also bump version to 0.4.3-dev

License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-07-01 14:15:06 -07:00
Jeromy
326973f45e providers test with multiple peers
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-25 22:59:57 -07:00
Jeromy
c8bc7ce39c Write providers to disk to avoid memory leaks
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-06-25 09:53:59 -07:00