Commit ab5a17fd3d3a3393ad0c8f8939e17344adacee6b
remove old `loadedFriends` check that doesn't work with flume
and breaks feed sync progressMatt McKegg committed on 6/10/2017, 12:13:50 AM
Parent: 28f67af09327610095853aaf8df4b182185f8108
Files changed
plugins/replicate/legacy.js | changed |
plugins/replicate/legacy.js | ||
---|---|---|
@@ -37,9 +37,8 @@ | ||
37 | 37 | |
38 | 38 | var start = null |
39 | 39 | var count = 0 |
40 | 40 | var rate = 0 |
41 | - var loadedFriends = false | |
42 | 41 | var toSend = {} |
43 | 42 | var peerHas = {} |
44 | 43 | var pendingFeedsForPeer = {} |
45 | 44 | var lastProgress = null |
@@ -71,9 +70,9 @@ | ||
71 | 70 | }) |
72 | 71 | |
73 | 72 | debounce(function () { |
74 | 73 | // 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 | |
76 | 75 | var legacyProgress = 0 |
77 | 76 | var legacyTotal = 0 |
78 | 77 | |
79 | 78 | var pendingFeeds = new Set() |
@@ -211,13 +210,8 @@ | ||
211 | 210 | localPeers() |
212 | 211 | } |
213 | 212 | //XXX ^ |
214 | 213 | |
215 | - function friendsLoaded () { | |
216 | - loadedFriends = true | |
217 | - debounce.set() | |
218 | - } | |
219 | - | |
220 | 214 | function upto (opts) { |
221 | 215 | opts = opts || {} |
222 | 216 | var ary = Object.keys(replicate).map(function (k) { |
223 | 217 | return { id: k, sequence: toSend[k]||0 } |
Built with git-ssb-web