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 64d19e6 commit 0271cb9Copy full SHA for 0271cb9
x/mongo/driver/topology/errors.go
@@ -65,6 +65,7 @@ type WaitQueueTimeoutError struct {
65
Wrapped error
66
}
67
68
+// Error implements the error interface.
69
func (w WaitQueueTimeoutError) Error() string {
70
errorMsg := "timed out while checking out a connection from connection pool"
71
if w.Wrapped != nil {
@@ -73,6 +74,7 @@ func (w WaitQueueTimeoutError) Error() string {
73
74
return errorMsg
75
76
77
+// Unwrap returns the underlying error.
78
func (w WaitQueueTimeoutError) Unwrap() error {
79
return w.Wrapped
80
0 commit comments