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

feat: 2 constructors for ModuleCache #145

Merged
merged 1 commit into from
Jan 16, 2025
Merged

Conversation

mattyg
Copy link
Member

@mattyg mattyg commented Jan 15, 2025

Summary

I added the ModuleBuilder hastily in #136 and didn't wait for review (my fault). I ran into this issue when integrating with holochain that the make_engine needed to construct a ModuleBuilder is no longer public.

This modifies ModuleCache to have 2 constructors. ModuleCache::new does not take a ModuleBuilder and constructs one, while ModuleCache::new_with_builder does. The latter is only used internally for running benchmarks where metering is disabled.

TODO:

  • CHANGELOG updated

…r and one that constructs the default ModuleBuilder
@mattyg mattyg merged commit af27d24 into main Jan 16, 2025
15 checks passed
@mattyg mattyg deleted the fix/construct-modulecache branch January 16, 2025 13:27
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.

3 participants