def update(self) -> int:
    """Updates the edge server.

    Returns:
        int: Update duration.
    """
    self.updated = True

    update_duration = self.patch + self.sanity_check

    # Storing update metadata
    self.update_metadata = {
        "maintenance_batch": self.simulator.maintenance_batches,
        "duration": update_duration,
    }

    return update_duration