You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Function `WithTransaction$1` should pass the context parameter (contextcheck)
func(sessCtx mongo.SessionContext) (interface{}, error) {
It appears there is an issue in creating a lambda function in this way, perhaps because the lambda function takes a mongo.SessionContext instead of a context.Context even though the former extends the latter: https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo#SessionContext
This issue appears to have arisen with the latest release.
The text was updated successfully, but these errors were encountered:
The essence of this issue lies in the inability to recognize embedded situations like mongo.SessionContext at present. In the future, it will be necessary to consider adding additional context type configurations. For now, you can consider making the following modifications.
In the following function
we are now seeing a False Positive
It appears there is an issue in creating a lambda function in this way, perhaps because the lambda function takes a
mongo.SessionContext
instead of acontext.Context
even though the former extends the latter: https://pkg.go.dev/go.mongodb.org/mongo-driver/mongo#SessionContextThis issue appears to have arisen with the latest release.
The text was updated successfully, but these errors were encountered: