Skip to content

Commit 1e689d1

Browse files
author
Benjamin Rewis
committed
Comment exported functions for WaitQueueTimeoutError
1 parent b047752 commit 1e689d1

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
@@ -33,6 +33,7 @@ type WaitQueueTimeoutError struct {
3333
Wrapped error
3434
}
3535

36+
// Error implements the error interface.
3637
func (w WaitQueueTimeoutError) Error() string {
3738
errorMsg := "timed out while checking out a connection from connection pool"
3839
if w.Wrapped != nil {
@@ -41,6 +42,7 @@ func (w WaitQueueTimeoutError) Error() string {
4142
return errorMsg
4243
}
4344

45+
// Unwrap returns the underlying error.
4446
func (w WaitQueueTimeoutError) Unwrap() error {
4547
return w.Wrapped
4648
}

0 commit comments

Comments
 (0)