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

Init rust api once #228

Merged
merged 7 commits into from
Dec 10, 2020
Merged

Init rust api once #228

merged 7 commits into from
Dec 10, 2020

Conversation

OoDeLally
Copy link
Contributor

@OoDeLally OoDeLally commented Dec 8, 2020

This PR prevents to call initRustAPI() several time and needlessly load the Rust library several times.
User functions are no longer responsible for loading it. Instead the top caller should load it once for everyone.

@OoDeLally OoDeLally requested a review from a team as a code owner December 8, 2020 10:09
@codecov-io
Copy link

codecov-io commented Dec 8, 2020

Codecov Report

Merging #228 (3f3eb2f) into master (521462e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #228   +/-   ##
=======================================
  Coverage   57.69%   57.69%           
=======================================
  Files         149      149           
  Lines       19902    19902           
  Branches     4464     4464           
=======================================
  Hits        11482    11482           
  Misses       5071     5071           
  Partials     3349     3349           
Flag Coverage Δ
integration 26.14% <ø> (ø)
unittests 51.95% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 521462e...0d36584. Read the comment docs.

Copy link
Contributor

@Patrik-Stas Patrik-Stas left a comment

Choose a reason for hiding this comment

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

Please also strip initRustAPI(options.libVCXPath) from initVcxCore

wrappers/node/test/helpers/utils.ts Outdated Show resolved Hide resolved
Pascal Heitz added 6 commits December 9, 2020 18:15
Signed-off-by: Pascal Heitz <pascal.heitz@absa.africa>
Signed-off-by: Pascal Heitz <pascal.heitz@absa.africa>
Signed-off-by: Pascal Heitz <pascal.heitz@absa.africa>
Signed-off-by: Pascal Heitz <pascal.heitz@absa.africa>
Signed-off-by: Pascal Heitz <pascal.heitz@absa.africa>
Signed-off-by: Pascal Heitz <pascal.heitz@absa.africa>
Patrik-Stas
Patrik-Stas previously approved these changes Dec 10, 2020
Signed-off-by: Pascal Heitz <pascal.heitz@absa.africa>
@Patrik-Stas Patrik-Stas merged commit fcdbd68 into master Dec 10, 2020
@Patrik-Stas Patrik-Stas deleted the init-rust-api-once branch December 10, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants