Skip to content

Commit d5418e9

Browse files
author
Evan Sims
committed
fix: REST client should not close after stream request
1 parent 355c6eb commit d5418e9

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

openfga_sdk/rest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,6 @@ async def stream(
409409
# Release the response object (required!)
410410
response.release()
411411

412-
# Release the connection back to the pool
413-
await self.close()
414-
415412
async def request(
416413
self,
417414
method: str,

openfga_sdk/sync/rest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,6 @@ def stream(
452452
# Release the response object (required!)
453453
response.release_conn()
454454

455-
# Release the connection back to the pool
456-
self.close()
457-
458455
def request(
459456
self,
460457
method: str,

0 commit comments

Comments
 (0)