def _sync(self, limit=1):
        response = self.api.initial_sync(limit)
        try:
            self.end = response["end"]
            for room in response["rooms"]:
                self._mkroom(room["room_id"])

                current_room = self.get_rooms()[room["room_id"]]
                for chunk in room["messages"]["chunk"]:
                    current_room.events.append(chunk)

                for state_event in room["state"]:
                    self._process_state_event(state_event, current_room)

        except __HOLE__:
            pass
dataset/ETHPy150Open matrix-org/matrix-python-sdk/matrix_client/client.py/MatrixClient._sync