git ssb

4+

Dominic / scuttlebot



Commit ab5a17fd3d3a3393ad0c8f8939e17344adacee6b

remove old `loadedFriends` check that doesn't work with flume

and breaks feed sync progress
Matt McKegg committed on 6/10/2017, 12:13:50 AM
Parent: 28f67af09327610095853aaf8df4b182185f8108

Files changed

plugins/replicate/legacy.jschanged
plugins/replicate/legacy.jsView
@@ -37,9 +37,8 @@
3737
3838 var start = null
3939 var count = 0
4040 var rate = 0
41- var loadedFriends = false
4241 var toSend = {}
4342 var peerHas = {}
4443 var pendingFeedsForPeer = {}
4544 var lastProgress = null
@@ -71,9 +70,9 @@
7170 })
7271
7372 debounce(function () {
7473 // only list loaded feeds once we know about all of them!
75- var feeds = loadedFriends ? Object.keys(toSend).length : null
74+ var feeds = Object.keys(toSend).length
7675 var legacyProgress = 0
7776 var legacyTotal = 0
7877
7978 var pendingFeeds = new Set()
@@ -211,13 +210,8 @@
211210 localPeers()
212211 }
213212 //XXX ^
214213
215- function friendsLoaded () {
216- loadedFriends = true
217- debounce.set()
218- }
219-
220214 function upto (opts) {
221215 opts = opts || {}
222216 var ary = Object.keys(replicate).map(function (k) {
223217 return { id: k, sequence: toSend[k]||0 }

Built with git-ssb-web