update.js
/*      outcome/
     * As the record has to be added
     * at the head of the log, we
     * increase the `last rec
     * number` of the log and create
     * a new record id for our
     * record and add it to our
     * shard of the log
     */
outcome
As the record has to be added
at the head of the log, we
increase the `last rec
number` of the log and create
a new record id for our
record and add it to our
shard of the log
outcome As the record has to be added at the head of the log we increase the ` last rec number ` of the log and create a new record id for our record and add it to our shard of the log
function add_to_log_1(writer, logs, logname, rec) {
        let log = alwaysGetLog(logs, logname)
        let shard = alwaysGetShard(writer, log)
        ds.setKoreFields(ds.latestRecNum(log)+1, shard.writer, rec)
        shard.records.push(rec)
    }
function add_to_log_1 ( writer , logs , logname , rec ) { let log = alwaysGetLog ( logs , logname ) let shard = alwaysGetShard ( writer , log ) ds . setKoreFields ( ds . latestRecNum ( log ) + 1 , shard . writer , rec ) shard . records . push ( rec ) }
outcome
 As the record has to be added
 at the head of the log, we
 increase the `last rec
 number` of the log and create
 a new record id for our
 record and add it to our
 shard of the log
outcome As the record has to be added at the head of the log we increase the ` last rec number ` of the log and create a new record id for our record and add it to our shard of the log