Skip to content

Commit a5773af

Browse files
committed
PHPLIB-260: Remove duplicate server selection in Collection::findOne()
1 parent 302de20 commit a5773af

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Collection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ public function findOne($filter = [], array $options = [])
470470
}
471471

472472
$operation = new FindOne($this->databaseName, $this->collectionName, $filter, $options);
473-
$server = $this->manager->selectServer($options['readPreference']);
474473

475474
return $operation->execute($server);
476475
}

0 commit comments

Comments
 (0)