Use stream_change cache to make get_forward_extremeties_for_room cache more effective

This commit is contained in:
Erik Johnston 2016-09-15 14:27:15 +01:00
parent 55e6fc917c
commit cb3edec6af
3 changed files with 19 additions and 2 deletions

View file

@ -173,7 +173,10 @@ class SlavedEventStore(BaseSlavedStore):
get_room_max_stream_ordering = DataStore.get_room_max_stream_ordering.__func__
get_forward_extremeties_for_room = (
EventFederationStore.__dict__["get_forward_extremeties_for_room"]
DataStore.get_forward_extremeties_for_room.__func__
)
_get_forward_extremeties_for_room = (
EventFederationStore.__dict__["_get_forward_extremeties_for_room"]
)
def stream_positions(self):