Skip to content

Commit

Permalink
Merge pull request #17 from jumpeiMano/feature/rename
Browse files Browse the repository at this point in the history
Rename pc with cn
  • Loading branch information
jumpeiMano authored Feb 18, 2019
2 parents e1716aa + 6f0a86a commit 66b67c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ func (p *Pool) Close() {
p.mu.Unlock()
}

func (pc *conn) expired(timeout time.Duration) bool {
func (cn *conn) expired(timeout time.Duration) bool {
if timeout <= 0 {
return false
}
return pc.t.Add(timeout).Before(time.Now())
return cn.t.Add(timeout).Before(time.Now())
}

0 comments on commit 66b67c1

Please sign in to comment.