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

Type api/ApiRouter.inc #1411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jchaffraix
Copy link
Collaborator

This PR reworks the ApiRouter to clearly state that it was using a trie and add an appropriate TrieNode. This helped clarify what the code does and clean up the types in the class.

Sandbox: https://www.pgdp.org/~jchaffraix/c.branch/julien_trie_in_apirouter/

TESTS=Tried calling some APIs after the change to confirm that the routing still works.

This PR reworks the ApiRouter to clearly state that it was
using a trie and add an appropriate TrieNode. This helped
clarify what the code does and clean up the types in the class.

TESTS=Tried calling some APIs after the change to confirm
that the routing still works.
@jchaffraix jchaffraix force-pushed the julien_trie_in_apirouter branch from e022b7a to 0acc756 Compare January 9, 2025 06:37
@jchaffraix jchaffraix marked this pull request as ready for review January 9, 2025 06:56
@jchaffraix jchaffraix mentioned this pull request Jan 9, 2025
Copy link
Member

@cpeel cpeel left a comment

Choose a reason for hiding this comment

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

I'd like to sanity-check this in your sandbox when I'm able, but the code LGTM sans this one dev-centric comment.

Thanks for breaking this out into a separate PR 🙏

api/ApiRouter.inc Show resolved Hide resolved
@cpeel cpeel requested review from chrismiceli, 70ray and srjfoo January 11, 2025 22:03
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.

4 participants