git ssb

16+

Dominic / patchbay



Commit ce2a509d878be40d901e81808aa29cf4d739e8e5

sort obs_gossip_peers (untested)

mmckegg/mutant#6
Matt 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.jschanged
modules_extra/network.jsView
@@ -207,10 +207,16 @@
207207 }
208208 })
209209
210210 refresh()
211 +
212 + var sortedIds = computed([state], (state) => {
213 + Object.keys(state).sort((a, b) => {
214 + return peerListSort(state[a], state[b])
215 + })
216 + })
211217
212- return dictToCollection.values(state)
218 + return mutantMap(sortedIds, state.get)
213219
214220 function refresh () {
215221 api.sbot_gossip_peers((err, peers) => {
216222 peers.forEach(data => {

Built with git-ssb-web