Commit ca08e5b7 authored by Jeromy's avatar Jeromy

sort options and add id to verbose output

License: MIT
Signed-off-by: default avatarJeromy <jeromyj@gmail.com>
parent dde7c59c
...@@ -20,13 +20,18 @@ type ReqLogEntry struct { ...@@ -20,13 +20,18 @@ type ReqLogEntry struct {
} }
func (r *ReqLogEntry) Finish() { func (r *ReqLogEntry) Finish() {
r.log.lock.Lock() log := r.log
defer r.log.lock.Unlock() log.lock.Lock()
defer log.lock.Unlock()
r.Active = false r.Active = false
r.EndTime = time.Now() r.EndTime = time.Now()
r.log.maybeCleanup() r.log.maybeCleanup()
// remove references to save memory
r.req = nil
r.log = nil
} }
func (r *ReqLogEntry) Copy() *ReqLogEntry { func (r *ReqLogEntry) Copy() *ReqLogEntry {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment