-
Notifications
You must be signed in to change notification settings - Fork 45
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
Addressed various initialization issues and patterns #143
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #143 +/- ##
==========================================
+ Coverage 94.77% 95.64% +0.86%
==========================================
Files 27 27
Lines 2756 2869 +113
Branches 353 374 +21
==========================================
+ Hits 2612 2744 +132
+ Misses 143 124 -19
Partials 1 1 ☔ View full report in Codecov by Sentry. |
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.
🥇 WOW! Really went above and beyond for this one! Excellent clean up!
…dentity#143) There are more to be done, but this is a good start. - Fixed confusing patterns of existing async method take callbacks, and yet return immediately without invoking and awaiting on the callback. - Introduced `DwnServer.stop()` for clarity and consistency. - Introduced `HttpApi.close()` for clarity and consistency. - Added missing `removeProcessHandlers` as counterpart to `setProcessHandlers` for proper clean up. - Added `didResolver` to `DwnServerOptions` for overriding DID Resolver cache LevelDB implementation in tests to prevent DB locking issues. - Used Poller to make some tests more stable.
There are more to be done, but this is a good start.
on the callback.
DwnServer.stop()
for clarity and consistency.HttpApi.close()
for clarity and consistency.removeProcessHandlers
as counterpart tosetProcessHandlers
for proper clean up.didResolver
toDwnServerOptions
for overriding DID Resolver cache LevelDB implementation in tests to prevent DB locking issues.