Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the server kind to the Nexus API context #5751

Merged
merged 2 commits into from
May 14, 2024

Commits on May 14, 2024

  1. Add the server kind to the Nexus API context

    - Adds a server kind enum, used to distinguish which API server is
      running any particular handler.
    - Wraps the existing `ServerContext` into a higher-level `ApiContext`
      type, which includes the former in addition to the kind of server
      handling the request.
    - Fixes #5651
    bnaecker committed May 14, 2024
    Configuration menu
    Copy the full SHA
    c758366 View commit details
    Browse the repository at this point in the history
  2. Review feedback

    - Use full match instead of `matches!`
    - Use `server_context()` method
    - Rename `ServerKind::for_internal()` constructor
    bnaecker committed May 14, 2024
    Configuration menu
    Copy the full SHA
    85d66c0 View commit details
    Browse the repository at this point in the history