1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Check context.Done while waiting for a connection

This commit is contained in:
Vladimir Mihailenco
2019-06-08 15:36:00 +03:00
parent 530e66a66e
commit 35932b7961
3 changed files with 20 additions and 11 deletions

View File

@ -22,7 +22,7 @@ func (p *SingleConnPool) CloseConn(*Conn) error {
panic("not implemented")
}
func (p *SingleConnPool) Get(c context.Context) (*Conn, error) {
func (p *SingleConnPool) Get(ctx context.Context) (*Conn, error) {
return p.cn, nil
}