Skip to content

Commit

Permalink
remove transient debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Aug 7, 2017
1 parent 1d3b0be commit 27b9343
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
7 changes: 0 additions & 7 deletions lib/common.js
Expand Up @@ -592,23 +592,16 @@ History.prototype.place = function place(timelimit) {

do {
i = Math.floor((s + e) / 2)
//i = Math.ceil((s+e)/2)
//console.log('S ',i,s,e)

if (timelimit > this._list[i].timelimit) {
s = i + 1
i = s
//c = 's'
} else if (timelimit < this._list[i].timelimit) {
e = i
//i = e
//c = 'e'
} else {
i++
break
}

//console.log('E ',i,s,e,s<e,c)
} while (s < e)

return i
Expand Down
2 changes: 0 additions & 2 deletions lib/inward.js
Expand Up @@ -182,8 +182,6 @@ function inward_act_cache(ctxt, data) {
var actid = meta.id
var private$ = ctxt.seneca.private$

// console.log(data.msg, meta)

if (actid != null && so.history.active) {
var actdetails = private$.history.get(actid)

Expand Down
10 changes: 2 additions & 8 deletions seneca.js
Expand Up @@ -945,15 +945,8 @@ function make_seneca(initial_options) {
var delegate = Object.create(self)
delegate.private$ = Object.create(self.private$)

var loc = new Error().stack
.split('\n')
.filter(function(line) {
return line.match(/mesh/) || line.match(/balance-client/)
})
.map(x => x.split('/').pop())

delegate.did =
(delegate.did ? delegate.did + '/' : '') + (didnid() + '~' + loc)
(delegate.did ? delegate.did + '/' : '') + didnid()

var strdesc
delegate.toString = function toString() {
Expand Down Expand Up @@ -1297,6 +1290,7 @@ intern.execute_action = function(
data.id = data.meta.id
data.result = []
data.timelimit = Date.now() + data.meta.timeout

private$.history.add(data)

if (opts.$.legacy.meta) {
Expand Down

0 comments on commit 27b9343

Please sign in to comment.