File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ import (
15
15
// ErrClosed performs any operation on the closed client will return this error.
16
16
var ErrClosed = pool .ErrClosed
17
17
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
+
18
25
// HasErrorPrefix checks if the err is a Redis error and the message contains a prefix.
19
26
func HasErrorPrefix (err error , prefix string ) bool {
20
27
var rErr Error
Original file line number Diff line number Diff line change @@ -11,8 +11,6 @@ import (
11
11
"github.com/redis/go-redis/v9/internal/pool"
12
12
)
13
13
14
- var ErrPoolTimeout = pool .ErrPoolTimeout
15
-
16
14
func (c * baseClient ) Pool () pool.Pooler {
17
15
return c .connPool
18
16
}
You can’t perform that action at this time.
0 commit comments