nats-io / nats.py

Python3 client for NATS
https://nats-io.github.io/nats.py/
Apache License 2.0
902 stars 193 forks source link

Fix stream info pagination and add test for empty stream list #594

Closed koushamad closed 2 months ago

koushamad commented 3 months ago

Fix: streams_info Method Only Returns First Page of Streams #591

Observed behavior The method only returns the first page of streams (up to 256 streams) and does not paginate through the remaining streams.

Expected behavior This merge request adds a test to verify that the streams_info method correctly handles offsets, ensuring proper pagination when retrieving streams. Additionally, it implements the necessary changes to the streams_info method to support pagination.

caspervonb commented 3 months ago

Heads up, tests are failing.

koushamad commented 3 months ago

@caspervonb test fixed.