Skip to content

Commit

Permalink
-> add | default offset value
Browse files Browse the repository at this point in the history
  • Loading branch information
raprek committed Jun 15, 2023
1 parent c37826d commit bb6b7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats/js/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def delete_consumer(self, stream: str, consumer: str) -> bool:
)
return resp['success']

async def consumers_info(self, stream: str, offset: Optional[int]) -> List[api.ConsumerInfo]:
async def consumers_info(self, stream: str, offset: Optional[int] = None) -> List[api.ConsumerInfo]:
"""
consumers_info retrieves a list of consumers. Consumers list limit is 256 for more
consider to use offset
Expand Down

0 comments on commit bb6b7cf

Please sign in to comment.