Skip to content

Commit

Permalink
Merge pull request #41 from bgokden/refactor
Browse files Browse the repository at this point in the history
Fix error
  • Loading branch information
bgokden authored Jul 2, 2021
2 parents 71ff3f4 + 92d8bfd commit 25fc90b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions util/connpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,9 @@ func (cp *ConnectionPool) PutIfHealthy(conn *Connection) {

func (cp *ConnectionPool) Close(conn *Connection) {
if conn != nil && conn.Conn != nil {
err := conn.Conn.Close()
if err != nil {
log.Printf("Connection Close Error: %v\n", err.Error())
}
err := conn.Conn.Close()
if err != nil {
log.Printf("Connection Close Error: %v\n", err.Error())
}
}
}

0 comments on commit 25fc90b

Please sign in to comment.