(self, client_args: ClientArgs)
| 239 | |
| 240 | class RandomPool(Pool): |
| 241 | def __init__(self, client_args: ClientArgs) -> None: |
| 242 | super().__init__(client_args) |
| 243 | logger.info(f"initializing RandomPool with {len(client_args)} api keys") |
| 244 | logger.info(f"client args: {client_args}") |
| 245 | |
| 246 | def __enter__(self, *args, **kwargs) -> ClientArgs: |
| 247 | """Get a client from the pool and return it as a context manager.""" |