Skip to content

Commit

Permalink
[#7] .Fix remove accidentally added line of code
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasObenaus committed Feb 12, 2020
1 parent d0ee672 commit 3586799
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ func (p *pool) Get() (*pooledConnection, error) {

// Try to grab first available idle connection
if conn := p.first(); conn != nil {
conn.pc.client.IsConnected()
// Remove the connection from the idle slice
p.idleConnections = append(p.idleConnections[:0], p.idleConnections[1:]...)
p.active++
Expand Down

0 comments on commit 3586799

Please sign in to comment.