pub(super) async fn persist(
transaction: TransactedDb<'_>,
plan: SyncV4Plan,
fetched: Option<Fetched>,
) -> Result<Persisted, SyncV4Error>Expand description
Persist the result of a sync v4 request handling.
In any case, this function will update the previous position’s state to mark its stale rooms to PREVIOUSLY (if any).
If fetched is Some, it will also create a new position storing the new state for this
fetched data.
Finally, this function will commit the given transaction, finalizing the request handling and
producing a Persisted.