Exemple #1
0
 async def record_transaction(self, txn, json_cb):
     if self.is_online:
         data = json_cb()
         self.pdus.extend(data["pdus"])
         return {}
     else:
         data = json_cb()
         self.failed_pdus.extend(data["pdus"])
         raise NotRetryingDestination(0, 24 * 60 * 60 * 1000, txn.destination)
        def query_user_devices(destination, user_id):
            if user_id == remote_user_id:
                self.resync_attempts += 1

            raise NotRetryingDestination(0, 0, destination)