(details: Optional[dict[str, float]])
| 126 | |
| 127 | |
| 128 | def format_timeout_details(details: Optional[dict[str, float]]) -> str: |
| 129 | result = "" |
| 130 | if details: |
| 131 | result += " (configured timeouts:" |
| 132 | for timeout in ["socketTimeoutMS", "timeoutMS", "connectTimeoutMS"]: |
| 133 | if timeout in details: |
| 134 | result += f" {timeout}: {details[timeout]}ms," |
| 135 | result = result[:-1] |
| 136 | result += ")" |
| 137 | return result |
| 138 | |
| 139 | |
| 140 | def _gen_index_name(keys: _IndexList) -> str: |
no outgoing calls
no test coverage detected