Skip to content

Commit 9208f05

Browse files
GODRIVER-2649 Remove ReadConcern command setter and field
1 parent 7871cac commit 9208f05

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

x/mongo/driver/operation/command.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"go.mongodb.org/mongo-driver/event"
1515
"go.mongodb.org/mongo-driver/internal/logger"
1616
"go.mongodb.org/mongo-driver/mongo/description"
17-
"go.mongodb.org/mongo-driver/mongo/readconcern"
1817
"go.mongodb.org/mongo-driver/mongo/readpref"
1918
"go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
2019
"go.mongodb.org/mongo-driver/x/mongo/driver"
@@ -24,7 +23,6 @@ import (
2423
// Command is used to run a generic operation.
2524
type Command struct {
2625
command bsoncore.Document
27-
readConcern *readconcern.ReadConcern
2826
database string
2927
deployment driver.Deployment
3028
selector description.ServerSelector
@@ -162,16 +160,6 @@ func (c *Command) Deployment(deployment driver.Deployment) *Command {
162160
return c
163161
}
164162

165-
// ReadConcern specifies the read concern for this operation.
166-
func (c *Command) ReadConcern(readConcern *readconcern.ReadConcern) *Command {
167-
if c == nil {
168-
c = new(Command)
169-
}
170-
171-
c.readConcern = readConcern
172-
return c
173-
}
174-
175163
// ReadPreference set the read preference used with this operation.
176164
func (c *Command) ReadPreference(readPreference *readpref.ReadPref) *Command {
177165
if c == nil {

0 commit comments

Comments
 (0)