Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix assertion to stop transaction queue getting wedged #2010

Merged
merged 1 commit into from Mar 15, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Mar 15, 2017

... and update some docstrings to correctly reflect the types being used.

I've done this as discussed, but having updated things to accurately reflect what's going on, am now having second thoughts and am wondering if it wouldn't have been better to cast the query result to int - that seems to be what happens elsewhere in the codebase. WDYT?

... and update some docstrings to correctly reflect the types being used.

get_new_device_msgs_for_remote can return a long under some circumstances,
which was being stored in last_device_list_stream_id_by_dest, and was then
upsetting things on the next loop.
@richvdh
Copy link
Member Author

richvdh commented Mar 15, 2017

fixes #2003

@erikjohnston
Copy link
Member

LGTM.

The casting is mostly to get from strings. We could/should probably change the int casts to longs, but whatevs

@richvdh
Copy link
Member Author

richvdh commented Mar 15, 2017

current_id = int(val) if val else step
isn't to get an int from a string. It seems to be to get an int from a long.

But, as you say, whatevs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants