Ejemplo n.º 1
0
 def __init__(self, hs):
     super(InitialSyncHandler, self).__init__(hs)
     self.hs = hs
     self.state = hs.get_state_handler()
     self.clock = hs.get_clock()
     self.validator = EventValidator()
     self.snapshot_cache = SnapshotCache()
Ejemplo n.º 2
0
    def __init__(self, hs):
        super(MessageHandler, self).__init__(hs)
        self.hs = hs
        self.state = hs.get_state_handler()
        self.clock = hs.get_clock()
        self.validator = EventValidator()
        self.snapshot_cache = SnapshotCache()

        self.pagination_lock = ReadWriteLock()
Ejemplo n.º 3
0
 def setUp(self):
     self.cache = SnapshotCache()
     self.cache.DURATION_MS = 1