-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add documenation for the rust client #260
Conversation
Instead of calling `AuditorClient::new()` directly, the `AuditorClientBuilder` should be used.
Instead of calling `AuditorClient::from_connection_string()` directly, the `AuditorClientBuilder` should be used.
This function is actually never used and to create a client the AuditorClientBuilder should be used anyway.
Instead of calling `AuditorClientBlocking::from_connection_string()` directly, the `AuditorClientBuilder` should be used.
Besides adding the documenation, this commit also improves the error propagation for the `build()` and `build_blocking()` methods by converting possible errors to `ClientError`.
This commit also harmonizes the types of possible that are returned in the client methods. Now, all errors have the type `ClientError`.
1347e99
to
93215c8
Compare
Codecov Report
@@ Coverage Diff @@
## main #260 +/- ##
==========================================
+ Coverage 50.86% 52.22% +1.35%
==========================================
Files 41 41
Lines 3049 3102 +53
==========================================
+ Hits 1551 1620 +69
+ Misses 1498 1482 -16
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Thanks, already looks pretty good. Just a few minor comments.
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.
Much better! I only have a few minor comments.
f1c1ff9
to
0d4fcc5
Compare
This allows us to reduce the usage of `map_err()` calls.
0d4fcc5
to
938d296
Compare
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.
LGTM! Thanks a lot!
This PR introduces the following changes: