Skip to content

Commit 0271cb9

Browse files
author
Benjamin Rewis
committed
Comment exported functions for WaitQueueTimeoutError
1 parent 64d19e6 commit 0271cb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

x/mongo/driver/topology/errors.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ type WaitQueueTimeoutError struct {
6565
Wrapped error
6666
}
6767

68+
// Error implements the error interface.
6869
func (w WaitQueueTimeoutError) Error() string {
6970
errorMsg := "timed out while checking out a connection from connection pool"
7071
if w.Wrapped != nil {
@@ -73,6 +74,7 @@ func (w WaitQueueTimeoutError) Error() string {
7374
return errorMsg
7475
}
7576

77+
// Unwrap returns the underlying error.
7678
func (w WaitQueueTimeoutError) Unwrap() error {
7779
return w.Wrapped
7880
}

0 commit comments

Comments
 (0)