Skip to content

Commit b7b3c54

Browse files
alex-does-stuffmattt
authored andcommitted
Asynchroneous close of response
1 parent f21086e commit b7b3c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

replicate/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ async def handle_async_request(self, request: httpx.Request) -> httpx.Response:
305305
):
306306
return response
307307

308-
response.close()
308+
await response.aclose()
309309

310310
sleep_for = self._calculate_sleep(attempts_made, response.headers)
311311
await asyncio.sleep(sleep_for)

0 commit comments

Comments
 (0)