summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2019-01-24 17:22:09 +0000
committerGitHub <noreply@github.com>2019-01-24 17:22:09 +0000
commit03c85335d1d386c0523af3b6bf992f83bfb905d7 (patch)
tree4704e1967ded90ae94c37edc6d214108cb1deb20 /synapse
parentUpdate synapse/api/filtering.py (diff)
downloadsynapse-03c85335d1d386c0523af3b6bf992f83bfb905d7.tar.xz
Apply suggestions from code review
Co-Authored-By: anoadragon453 <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/search.py2
-rw-r--r--synapse/storage/state.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py

index 75c26fe065..49c439313e 100644 --- a/synapse/handlers/search.py +++ b/synapse/handlers/search.py
@@ -52,7 +52,7 @@ class SearchHandler(BaseHandler): room_id (str): id of the room to search through. Returns: - Deferred[iterable[str]]: predecessor room ids + Deferred[iterable[unicode]]: predecessor room ids """ historical_room_ids = [] diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index fceb9744aa..0a0691cd00 100644 --- a/synapse/storage/state.py +++ b/synapse/storage/state.py
@@ -446,7 +446,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore): room_id (str) Returns: - Deferred[str]: predecessor room id + Deferred[unicode|None]: predecessor room id """ state_ids = yield self.get_current_state_ids(room_id) create_id = state_ids.get((EventTypes.Create, ""))