mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-05-06 05:24:57 -04:00
Factor out resolve_state_groups to a separate handler
We extract the storage-independent bits of the state group resolution out to a separate functiom, and stick it in a new handler, in preparation for its use from the storage layer.
This commit is contained in:
parent
0cbda53819
commit
6da4c4d3bd
4 changed files with 108 additions and 54 deletions
|
@ -66,7 +66,7 @@ from synapse.rest.media.v1.media_repository import (
|
|||
MediaRepository,
|
||||
MediaRepositoryResource,
|
||||
)
|
||||
from synapse.state import StateHandler
|
||||
from synapse.state import StateHandler, StateResolutionHandler
|
||||
from synapse.storage import DataStore
|
||||
from synapse.streams.events import EventSources
|
||||
from synapse.util import Clock
|
||||
|
@ -102,6 +102,7 @@ class HomeServer(object):
|
|||
'v1auth',
|
||||
'auth',
|
||||
'state_handler',
|
||||
'state_resolution_handler',
|
||||
'presence_handler',
|
||||
'sync_handler',
|
||||
'typing_handler',
|
||||
|
@ -224,6 +225,9 @@ class HomeServer(object):
|
|||
def build_state_handler(self):
|
||||
return StateHandler(self)
|
||||
|
||||
def build_state_resolution_handler(self):
|
||||
return StateResolutionHandler(self)
|
||||
|
||||
def build_presence_handler(self):
|
||||
return PresenceHandler(self)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue