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

fix(runtime): use FQDN in NetDescriptor #23084

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

nayeemrmn
Copy link
Collaborator

- pub struct NetDescriptor(pub String, pub Option<u16>);
  pub struct NetDescriptor(pub FQDN, pub Option<u16>);

This is a very small change, but I noticed the Descriptor::check_in_permission() implementations were reconstructing the descriptor objects for no reason and fixed it. Had to refactor all the &Option<T> to Option<&T> in the process. cc @mmastrac

@bartlomieju
Copy link
Member

Nice drive-by cleanup as well!

@nayeemrmn nayeemrmn merged commit 2cd9c6a into denoland:main Mar 26, 2024
17 checks passed
@nayeemrmn nayeemrmn deleted the net-descriptor-fqdn branch March 26, 2024 23:29
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