git ssb

0+

ev / microbay



forked from Dominic / patchbay

Commit 5225db1d0cd9f2285ba984868432f417086a7a58

Don't re-fetch cached message

Charles Lehner committed on 8/8/2016, 7:44:36 AM
Parent: 02f6ec268886a1f83acfd2683d727d8eb33cf9bb

Files changed

sbot-api.jschanged
sbot-api.jsView
@@ -117,9 +117,9 @@
117117 return sbot.createUserStream(opts)
118118 }),
119119 sbot_get: rec.async(function (key, cb) {
120120 if(CACHE[key]) cb(null, CACHE[key])
121- sbot.get(key, function (err, value) {
121+ else sbot.get(key, function (err, value) {
122122 if(err) return cb(err)
123123 cb(null, CACHE[key] = value)
124124 })
125125 }),

Built with git-ssb-web