Commit 7230f37363daf6ee98fab654ab98d27397914c28
turns out we need ssb-links for homework
Ev Bogue committed on 7/29/2018, 4:53:08 PMParent: 46ef9e90772ab5e16ae211a9cfab1ea45fcaa806
Files changed
scuttlebot.js | changed |
scuttlebot.js | ||
---|---|---|
@@ -61,8 +61,11 @@ | ||
61 | 61 … | CACHE[e.key] = CACHE[e.key] || e.value |
62 | 62 … | }) |
63 | 63 … | ) |
64 | 64 … | }), |
65 … | + links: rec.source(function (query) { | |
66 … | + return sbot.links(query) | |
67 … | + }), | |
65 | 68 … | get: rec.async(function (key, cb) { |
66 | 69 … | if('function' !== typeof cb) |
67 | 70 … | throw new Error('cb must be function') |
68 | 71 … | if(CACHE[key]) cb(null, CACHE[key]) |
Built with git-ssb-web