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

Add /state_ids federation API #979

Merged
merged 9 commits into from Aug 4, 2016
Merged

Add /state_ids federation API #979

merged 9 commits into from Aug 4, 2016

Conversation

erikjohnston
Copy link
Member

The new API only returns the event_ids for the state, as most requesters will already have the vast majority of the events already.

The new API only returns the event_ids for the state, as most
requesters will already have the vast majority of the events already.
defer.returnValue((pdus, auth_chain))
except HttpResponseException as e:
if e.code == 404:
logger.info("Failed to use get_room_state_ids API, falling back")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you actually falling back here? I'm not seeing any calls to transport_layer.get_room_state

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woops

]

res = yield defer.DeferredList(deferreds, consumeErrors=True)
for (result, val), (e_id, _) in res:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is it (result,val), (e_id, _) here but (r, e), e_id) in the list comprehension above. What's the difference between result and val.

@NegativeMjark
Copy link
Contributor

LGTM

@erikjohnston erikjohnston merged commit 1b5436a into develop Aug 4, 2016
@richvdh richvdh deleted the erikj/state_ids_api branch December 1, 2016 14:09
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