Commit af10b365 authored by Vojtech Vitek (V-Teq)'s avatar Vojtech Vitek (V-Teq)

Don't ignore Close() error return value

Feedback by @jpfuentes2.
parent 081a820f
......@@ -39,8 +39,8 @@ func Connect(address string, extra ...string) (*Conn, error) {
}
// Close closes the connection to a Disque Pool.
func (conn *Conn) Close() {
conn.pool.Close()
func (conn *Conn) Close() error {
return conn.pool.Close()
}
// Ping returns nil if Disque Pool is alive, error otherwise.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment