1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-06 01:35:48 +03:00

pool: rate limit number of open connections.

This commit is contained in:
Vladimir Mihailenco
2014-05-15 14:21:37 +03:00
parent da53e96ce8
commit 5f52b5823f
4 changed files with 61 additions and 21 deletions

View File

@@ -24,7 +24,9 @@ func (c *Client) Multi() *Multi {
}
func (c *Multi) Close() error {
c.Unwatch()
if err := c.Unwatch().Err(); err != nil {
return err
}
return c.Client.Close()
}