git ssb

7+

dinoworm 🐛 / patchcore



Commit 9062bc4c96853910b299d0c0fe37db5b50dc7baa

Merge pull request #13 from ssbc/browser-gossip

don't throw sbot.gossip.peers error
Matt McKegg authored on 4/14/2017, 11:02:06 AM
GitHub committed on 4/14/2017, 11:02:06 AM
Parent: f5c806e6031dd866914fe21460c6e9ee962d43af
Parent: 377c8e80ded6586633d47e9bc446ee5317770603

Files changed

sbot.jschanged
sbot.jsView
@@ -225,9 +225,9 @@
225225
226226 function refreshPeers () {
227227 if (sbot) {
228228 sbot.gossip.peers((err, peers) => {
229- if (err) throw console.log(err)
229 + if (err) return console.error(err)
230230 connectedPeers.set(peers.filter(x => x.state === 'connected').map(x => x.key))
231231 localPeers.set(peers.filter(x => x.source === 'local').map(x => x.key))
232232 })
233233 }

Built with git-ssb-web