git ssb

4+

Dominic / scuttlebot



Commit 1802ce94b0eb0903cc5f9dd7e00aed245b4f124b

try all the gossip methods!

Dominic Tarr committed on 6/21/2017, 12:20:00 PM
Parent: 7e73c39d7476e6cfaadac7bd54c77c687056ef3b

Files changed

plugins/gossip/schedule.jschanged
plugins/gossip/schedule.jsView
@@ -104,9 +104,8 @@
104104 }
105105
106106 var schedule = exports = module.exports =
107107 function (gossip, config, server) {
108-// return
109108 var min = 60e3, hour = 60*60e3, closed = false
110109
111110 //trigger hard reconnect after suspend or local network changes
112111 onWakeup(gossip.reconnect)
@@ -114,9 +113,9 @@
114113
115114 function conf(name, def) {
116115 if(config.gossip == null) return def
117116 var value = config.gossip[name]
118- return (value === undefined || value === '') ? def : value
117+ return (value == null || value === '') ? def : value
119118 }
120119
121120 function connect (peers, ts, name, filter, opts) {
122121 opts.group = name
@@ -159,9 +158,9 @@
159158 if(conf('seed', true))
160159 connect(peers, ts, 'seeds', isSeed, {
161160 quota: 3, factor: 2e3, max: 10*min, groupMin: 1e3,
162161 })
163- return //XXX
162+
164163 if(conf('local', true))
165164 connect(peers, ts, 'local', isLocal, {
166165 quota: 3, factor: 2e3, max: 10*min, groupMin: 1e3,
167166 })
@@ -235,9 +234,8 @@
235234 connections()
236235
237236 return function onClose () {
238237 closed = true
239-
240238 }
241239
242240 }
243241
@@ -248,4 +246,8 @@
248246 exports.isLocal = isLocal
249247 exports.isFriend = isFriend
250248 exports.isConnectedOrConnecting = isConnect
251249 exports.select = select
250+
251+
252+
253+

Built with git-ssb-web