Skip to content

Commit

Permalink
Move a lastUsed update from lock to unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
michalderkacz committed May 17, 2012
1 parent 1605ae0 commit 6641f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thrsafe/thrsafe.go
Expand Up @@ -28,11 +28,11 @@ type Conn struct {
func (c *Conn) lock() {
//log.Println(c, ":: lock @", c.mutex)
c.mutex.Lock()
c.lastUsed = time.Now()
}

func (c *Conn) unlock() {
//log.Println(c, ":: unlock @", c.mutex)
c.lastUsed = time.Now()
c.mutex.Unlock()
}

Expand Down

0 comments on commit 6641f18

Please sign in to comment.