Split resolve_events into two functions

... so that the return type doesn't depend on the arg types
This commit is contained in:
Richard van der Hoff 2018-01-17 15:44:31 +00:00
parent a7e4ff9cca
commit 390093d45e
2 changed files with 29 additions and 20 deletions

View file

@ -27,7 +27,7 @@ from synapse.util.logutils import log_function
from synapse.util.metrics import Measure
from synapse.api.constants import EventTypes
from synapse.api.errors import SynapseError
from synapse.state import resolve_events
from synapse.state import resolve_events_with_factory
from synapse.util.caches.descriptors import cached
from synapse.types import get_domain_from_id
@ -557,7 +557,7 @@ class EventsStore(SQLBaseStore):
to_return.update(evs)
defer.returnValue(to_return)
current_state = yield resolve_events(
current_state = yield resolve_events_with_factory(
state_sets,
state_map_factory=get_events,
)