Commit ce2a509d878be40d901e81808aa29cf4d739e8e5
sort obs_gossip_peers (untested)
mmckegg/mutant#6Matt McKegg authored on 2/6/2017, 6:18:13 AM
Michael Williams committed on 2/6/2017, 10:11:36 AM
Parent: edabe8be49e24684f650eea0bbebd38e65df4f9f
Files changed
modules_extra/network.js | changed |
modules_extra/network.js | ||
---|---|---|
@@ -207,10 +207,16 @@ | ||
207 | 207 … | } |
208 | 208 … | }) |
209 | 209 … | |
210 | 210 … | refresh() |
211 … | + | |
212 … | + var sortedIds = computed([state], (state) => { | |
213 … | + Object.keys(state).sort((a, b) => { | |
214 … | + return peerListSort(state[a], state[b]) | |
215 … | + }) | |
216 … | + }) | |
211 | 217 … | |
212 | - return dictToCollection.values(state) | |
218 … | + return mutantMap(sortedIds, state.get) | |
213 | 219 … | |
214 | 220 … | function refresh () { |
215 | 221 … | api.sbot_gossip_peers((err, peers) => { |
216 | 222 … | peers.forEach(data => { |
Built with git-ssb-web