Skip to content

Commit 6b7b64f

Browse files
committed
nit
1 parent f8763de commit 6b7b64f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

flow/shared/mongo/validation.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ func GetBuildInfo(ctx context.Context, client *mongo.Client) (*BuildInfo, error)
3232
}
3333

3434
func GetReplSetGetStatus(ctx context.Context, client *mongo.Client) (*ReplSetGetStatus, error) {
35-
db := client.Database("admin")
36-
singleResult := db.RunCommand(ctx, bson.D{
35+
singleResult := client.Database("admin").RunCommand(ctx, bson.D{
3736
bson.E{Key: "replSetGetStatus", Value: 1},
3837
})
3938
if singleResult.Err() != nil {

0 commit comments

Comments
 (0)