'Args:
hs (synapse.server.HomeServer):'

def __init__(self, hs):

    self.store = hs.get_datastore()
    self.auth = hs.get_auth()
    self.notifier = hs.get_notifier()
    self.state_handler = hs.get_state_handler()
    self.distributor = hs.get_distributor()
    self.ratelimiter = hs.get_ratelimiter()
    self.clock = hs.get_clock()
    self.hs = hs
    self.server_name = hs.hostname
    self.event_builder_factory = hs.get_event_builder_factory()
