Skip to content

Commit 2161eed

Browse files
author
Isabella Siu
committed
GODRIVER-704 document that mongo.SessionContext is not goroutine safe
Change-Id: I167bda20f16716287331e29faff8fe9a11b3a84c
1 parent 7f4797e commit 2161eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongo/session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var ErrWrongClient = errors.New("session was not created by this client")
2626

2727
// SessionContext is a hybrid interface. It combines a context.Context with
2828
// a mongo.Session. This type can be used as a regular context.Context or
29-
// Session type.
29+
// Session type. It is not goroutine safe and should not be used in multiple goroutines concurrently.
3030
type SessionContext interface {
3131
context.Context
3232
Session

0 commit comments

Comments
 (0)