Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroyky committed Nov 17, 2023
1 parent a95ca14 commit f22f361
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion memcache/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ func (p *pool) getConn() (*conn, error) {
}

// return latest freeconn or wait until to become free
return <-p.freeconns, nil
cn, _ = p.dequeueFreeConn()
return cn, nil
}

func (p *pool) isNewConnOk() bool {
Expand Down

0 comments on commit f22f361

Please sign in to comment.