Skip to content

Commit

Permalink
GODRIVER-2649 Remove ReadConcern command setter and field
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvasquez committed Nov 1, 2023
1 parent e2bbe67 commit e199a23
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions x/mongo/driver/operation/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"go.mongodb.org/mongo-driver/event"
"go.mongodb.org/mongo-driver/internal/logger"
"go.mongodb.org/mongo-driver/mongo/description"
"go.mongodb.org/mongo-driver/mongo/readconcern"
"go.mongodb.org/mongo-driver/mongo/readpref"
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
"go.mongodb.org/mongo-driver/x/mongo/driver"
Expand All @@ -24,7 +23,6 @@ import (
// Command is used to run a generic operation.
type Command struct {
command bsoncore.Document
readConcern *readconcern.ReadConcern
database string
deployment driver.Deployment
selector description.ServerSelector
Expand Down Expand Up @@ -162,16 +160,6 @@ func (c *Command) Deployment(deployment driver.Deployment) *Command {
return c
}

// ReadConcern specifies the read concern for this operation.
func (c *Command) ReadConcern(readConcern *readconcern.ReadConcern) *Command {
if c == nil {
c = new(Command)
}

c.readConcern = readConcern
return c
}

// ReadPreference set the read preference used with this operation.
func (c *Command) ReadPreference(readPreference *readpref.ReadPref) *Command {
if c == nil {
Expand Down

0 comments on commit e199a23

Please sign in to comment.