git ssb

6+

Dominic / epidemic-broadcast-trees



Commit b1d492d4ce5e4a3cf220de4e978b82450fc9a3df

'use strict' everywhere

Dominic Tarr committed on 6/5/2017, 9:47:16 AM
Parent: 44b78ddb99bccc18d9093d7fa39c0ed0a10ea535

Files changed

index.jschanged
progress.jschanged
simulate.jschanged
util.jschanged
index.jsView
@@ -1,4 +1,5 @@
1 +'use strict'
12 var S = require('./state')
23 var u = require('./util')
34 var isNote = u.isNote
45 var isMessage = u.isMessage
@@ -51,9 +52,9 @@
5152 if('function' === typeof opts)
5253 callback = opts, opts = {}
5354
5455 var readyMsg = [], readyNote = {}
55- onChange = opts.onChange || require('./bounce')(function () {
56 + var onChange = opts.onChange || require('./bounce')(function () {
5657 console.log(progress(states))
5758 }, 1000)
5859
5960 //called if this feed is has not been requested
@@ -220,4 +221,5 @@
220221
221222 }
222223 }
223224
225 +
progress.jsView
@@ -1,4 +1,5 @@
1 +'use strict'
12 //Question: can I use req to reliably track how many
23 //messages we are expecting to receive?
34
45 //Math.max(null, null) is zero, but we want null
simulate.jsView
@@ -1,4 +1,5 @@
1 +'use strict'
12 var states = require('./state')
23 var RNG = require('rng')
34 var deepEqual = require('deep-equal')
45 var invariants = require('./invariants')
util.jsView
@@ -1,4 +1,5 @@
1 +'use strict'
12 //this should be replaced with a heap,
23 //but i'll look for a good heap implementation later
34 //this should be enough for now.
45 exports.sort = function (queue) {

Built with git-ssb-web