Skip to content

Commit

Permalink
Fixed sync_enabled property for paginated_result
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Oct 1, 2023
1 parent 1297bb8 commit 694a6b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ably/http/paginatedresult.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ def __init__(self, http, items, content_type, rel_first, rel_next,
self.__response_processor = response_processor
self.response = response

@property
def sync_enabled(self):
return self.__http.ably

@property
def items(self):
return self.__items
Expand All @@ -78,6 +74,10 @@ async def first(self):
async def next(self):
return await self.__get_rel(self.__rel_next) if self.__rel_next else None

@property
def sync_enabled(self):
return self.__http.sync_enabled

async def __get_rel(self, rel_req):
if rel_req is None:
return None
Expand Down

0 comments on commit 694a6b1

Please sign in to comment.