Skip to content

Commit

Permalink
Merge a52b99f into ae2f7c4
Browse files Browse the repository at this point in the history
  • Loading branch information
deeghuge committed Dec 12, 2018
2 parents ae2f7c4 + a52b99f commit 679053f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/locker.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ func (l *locker) updateStats(name string) {
defer l.logger.Trace(logs.DEBUG, logs.Args{{"lockName", name}})()

l.statsLock.Lock()
defer l.cleanup()
defer l.statsLock.Unlock()
defer l.cleanup()
if stat, exists := l.stats[name]; exists {
stat = time.Now()
l.stats[name] = stat
Expand Down

0 comments on commit 679053f

Please sign in to comment.