-
Notifications
You must be signed in to change notification settings - Fork 1
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: Cohort Replicator JS #78
Conversation
while (attemptNr <= retry.maxAttempts) { | ||
attemptNr++ | ||
|
||
if (attemptNr > retry.maxAttempts) { |
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.
This one is missing in Replicator Rust example!
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #78 +/- ##
==========================================
- Coverage 60.15% 58.16% -1.99%
==========================================
Files 96 103 +7
Lines 5132 5314 +182
==========================================
+ Hits 3087 3091 +4
- Misses 2045 2223 +178
☔ View full report in Codecov by Sentry. |
* feat: Initial draft for errors handling between Rust and JS * fix: Remove cohort_sdk_js dependency, instead declare optional dependencies on images. * fix: Inject using serde annotation _typ during serialisation into JSON. * fix: Improve error handling when processig callback calls between JS and RS. * feat: Add ReplicatorError and map it to JS layer. (#81) * feat: Add wrapper and error handler for Replicator JS. * feat: Add ReplicatorError and map it to JS layer. * fix: Move dev dependencies into relevant section in the package.json
let database = Database::init_db(cfg_db).await.map_err(|e| e.to_string()).unwrap(); | ||
let database = Database::init_db(cfg_db.clone()) | ||
.await | ||
.map_err(|e| e.to_string()) |
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.
don't need this map_err
as you are chaining that with expect
Once we merge that one, as separate work, I will finish renaming of cohort packages.
There are many files in this PR but mostly because of import change and moving classes around.