Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HistoryResponse iterator should be able to be traversed multiple times #126

Open
bmario opened this issue Aug 1, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@bmario
Copy link
Member

bmario commented Aug 1, 2022

The following code should work:

c = HistoryClient(...)
await c.connect()
response = await c.history_raw_timeline(...)
data = [(timestamp, value) for timestamp, value in response]
assert len(data) > 0
data = [(timestamp, value) for timestamp, value in response]
assert len(data) > 0 # this fails :(

This makes MetricQ hard to use in jupyter notebooks

@bmario bmario added the bug Something isn't working label Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant