index.js
function onUpdate (update) {
      var value = update[0], ts = update[1], id = update[2]
      insertBatch (id, key, ts, JSON.stringify(value), scuttlebutt)
    }
function onUpdate (update) {
      var value = update[0], ts = update[1], id = update[2]
      insertBatch (id, key, ts, JSON.stringify(value), scuttlebutt)
    }
function onUpdate ( update ) { var value = update [ 0 ] , ts = update [ 1 ] , id = update [ 2 ] insertBatch ( id , key , ts , JSON . stringify ( value ) , scuttlebutt ) }
write the update twice, the first time, to store the document. maybe change scuttlebutt so that value is always a string? If i write a bunch of batches, will they come out in order? because I think updates are expected in order, or it will break.
write the update twice the first time to store the document . maybe change scuttlebutt so that value is always a string? If i write a bunch of batches will they come out in order? because I think updates are expected in order or it will break .