Skip to content

Commit

Permalink
fix: goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroyky committed Nov 17, 2023
1 parent 5369eaa commit 01d37fd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions memcache/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ func (p *pool) putFreeConn(cn *conn) {
go func() {
p.lk.Lock()
defer p.lk.Unlock()
if p.freeconns == nil {
p.freeconns = make(chan *conn)
}
p.freeconns <- cn
p.freeconnsNum++
}()
Expand Down

0 comments on commit 01d37fd

Please sign in to comment.