Add a comment that is very useful in reading stack traces
This commit is contained in:
parent
9141fd9f80
commit
a8443577d2
2
satan.go
2
satan.go
|
@ -125,7 +125,7 @@ func (s *Satan) processTask(t *task) {
|
||||||
defer t.daemon.base().handlePanic()
|
defer t.daemon.base().handlePanic()
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
|
|
||||||
t.actor()
|
t.actor() // <--- THE ACTION HAPPENS HERE
|
||||||
|
|
||||||
dur := time.Now().UnixNano() - start.UnixNano()
|
dur := time.Now().UnixNano() - start.UnixNano()
|
||||||
t.daemon.base().stats.add(time.Duration(dur))
|
t.daemon.base().stats.add(time.Duration(dur))
|
||||||
|
|
Loading…
Reference in New Issue