Stream related utils

Hierarchy

  • StreamUtils

Constructors

Methods

  • Asserts that the 'id' and 'prev' properties of the given commit properly link to the tip of the given stream state.

    By the time the code gets into a StreamtypeHandler's applyCommit function the link to the state should already have been established by the stream loading and conflict resolution code, so if this check were to fail as part of a StreamtypeHandler's applyCommit function, that would indicate a programming error.

    TODO: Use a process-fatal 'invariant' designed for checking against programming errors, once we have a more robust error handling framework in place.

    Parameters

    Returns void