File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ import (
1515// ErrClosed performs any operation on the closed client will return this error.
1616var ErrClosed = pool .ErrClosed
1717
18+ // ErrPoolExhausted is returned from a pool connection method
19+ // when the maximum number of database connections in the pool has been reached.
20+ var ErrPoolExhausted = pool .ErrPoolExhausted
21+
22+ // ErrPoolTimeout timed out waiting to get a connection from the connection pool.
23+ var ErrPoolTimeout = pool .ErrPoolTimeout
24+
1825// HasErrorPrefix checks if the err is a Redis error and the message contains a prefix.
1926func HasErrorPrefix (err error , prefix string ) bool {
2027 var rErr Error
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import (
1111 "github.com/redis/go-redis/v9/internal/pool"
1212)
1313
14- var ErrPoolTimeout = pool .ErrPoolTimeout
15-
1614func (c * baseClient ) Pool () pool.Pooler {
1715 return c .connPool
1816}
You can’t perform that action at this time.
0 commit comments