NoahStapp commented on code in PR #36961:
URL: https://github.com/apache/beam/pull/36961#discussion_r2582286427


##########
sdks/python/apache_beam/io/mongodbio.py:
##########
@@ -460,16 +457,15 @@ def _get_split_keys(
     if self._range_is_not_splittable(start_pos, end_pos):
       return []
 
-    with MongoClient(self.uri, **self.spec) as client:

Review Comment:
   Fair enough. I'll update this PR to revert the earlier change and apply your 
`self.spec` suggestion.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to