git ssb

3+

Dominic / ssb-blobs



Commit 797a50eb6e8f09face50d866903cbbe0dcf5c48a

treat 0 as request, not hop count

Dominic Tarr committed on 7/8/2017, 12:54:14 AM
Parent: 8f69ac48d2f64075bec0751363849fc1a2e816ac

Files changed

inject.jschanged
inject.jsView
@@ -125,9 +125,9 @@
125125 function process (data, peer, cb) {
126126 var n = 0, res = {}
127127 for(var id in data) {
128128 if(isBlobId(id) && isInteger(data[id])) {
129- if(data[id] <= 0 && (opts.stingy !== true || push[id])) { //interpret as "WANT"
129 + if(data[id] < 0 && (opts.stingy !== true || push[id])) { //interpret as "WANT"
130130 n++
131131 //check whether we already *HAVE* this file.
132132 //respond with it's size, if we do.
133133 blobs.size(id, function (err, size) { //XXX
@@ -336,4 +336,5 @@
336336 }
337337 }
338338
339339
340 +

Built with git-ssb-web