We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b047752 commit 1e689d1Copy full SHA for 1e689d1
x/mongo/driver/topology/errors.go
@@ -33,6 +33,7 @@ type WaitQueueTimeoutError struct {
33
Wrapped error
34
}
35
36
+// Error implements the error interface.
37
func (w WaitQueueTimeoutError) Error() string {
38
errorMsg := "timed out while checking out a connection from connection pool"
39
if w.Wrapped != nil {
@@ -41,6 +42,7 @@ func (w WaitQueueTimeoutError) Error() string {
41
42
return errorMsg
43
44
45
+// Unwrap returns the underlying error.
46
func (w WaitQueueTimeoutError) Unwrap() error {
47
return w.Wrapped
48
0 commit comments