Skip to content

[DISCO-4526] merino: add seq and sid field - #7712

Open
tiftran wants to merge 1 commit into
mainfrom
merino-seq-sid
Open

tiftran wants to merge 1 commit into
mainfrom
merino-seq-sid

Conversation

@tiftran

@tiftran tiftran commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Pull Request checklist

  • Breaking changes: This PR follows our breaking change policy
    • This PR follows the breaking change policy:
      • This PR has no breaking API changes, or
      • There are corresponding PRs for our consumer applications that resolve the breaking changes and have been approved
  • Quality: This PR builds and tests run cleanly
    • Note:
      • For changes that need extra cross-platform testing, consider adding [ci full] to the PR title.
      • If this pull request includes a breaking change, consider cutting a new release after merging.
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry in CHANGELOG.md or an explanation of why it does not need one
    • Any breaking changes to Swift or Kotlin binding APIs are noted explicitly
  • Dependencies: This PR follows our dependency management guidelines
    • Any new dependencies are accompanied by a summary of the due diligence applied in selecting them.

@tiftran
tiftran requested a review from a team October 31, 2026 00:14
viaduct = { path = "../viaduct", features = ["ohttp"] }
error-support = { path = "../support/error" }
thiserror = "2"
parking_lot = "0.12"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seemed like what other components were using?


/// Returns the session ID and sequence number to send with the next request,
/// starting a new session if there isn't one, and advances the sequence number.
fn next_session_params(&self) -> (String, u32) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the returned tuple is not actually the next session state but the current one. Rename it to advance_session() might sound more reasonable. We can note that this method will return the pre-advance session state.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants