MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / get_hosts

Method get_hosts

pymongo/asynchronous/srv_resolver.py:147–149  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 return results, nodes
146
147 async def get_hosts(self) -> list[tuple[str, Any]]:
148 _, nodes = await self._get_srv_response_and_hosts(True)
149 return nodes
150
151 async def get_hosts_and_min_ttl(self) -> tuple[list[tuple[str, Any]], int]:
152 results, nodes = await self._get_srv_response_and_hosts(False)

Callers 1

_parse_srvFunction · 0.45

Calls 1

Tested by

no test coverage detected