-
Notifications
You must be signed in to change notification settings - Fork 256
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
trigger: Tweak wording of AOT compilation code #2682
Conversation
Signed-off-by: Lann Martin <lann.martin@fermyon.com>
format!( | ||
"failed to read component source from disk at path {}", | ||
quoted_path(&path) | ||
) | ||
})?; | ||
let component = spin_componentize::componentize_if_necessary(&bytes)?; | ||
spin_core::Component::new(engine, component.as_ref()) | ||
.with_context(|| format!("loading module {}", quoted_path(&path))) | ||
format!( | ||
"failed to read component source from disk at path {}", | ||
quoted_path(&path) | ||
) | ||
})?; | ||
let component = spin_componentize::componentize_if_necessary(&bytes)?; | ||
spin_core::Component::new(engine, component.as_ref()) | ||
.with_context(|| format!("loading module {}", quoted_path(&path))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just rustfmt
having a New Opinion I think...
AllAotComponents, | ||
/// No components are ahead of time (AOT) compiled. | ||
NoneAot, | ||
Enabled, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enabled suggests more "it's allowed" than "they are," but I imagine anyone who interacts with it will already understand this stuff deeply (certainly deeplier than me!) and it is definitely better than before!
Several times I've looked at this
match self.compilation_status
block and been confused by the wording of the variants.