-
Notifications
You must be signed in to change notification settings - Fork 95
feat: Add async/await Write API without batching #102
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
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.
Please use rebase instead of merge commit.
210ff62
to
e63ca2d
Compare
e63ca2d
to
d6b6bf6
Compare
Codecov Report
@@ Coverage Diff @@
## master #102 +/- ##
==========================================
- Coverage 15.95% 15.67% -0.28%
==========================================
Files 49 50 +1
Lines 4852 4989 +137
Branches 244 252 +8
==========================================
+ Hits 774 782 +8
- Misses 4058 4187 +129
Partials 20 20
Continue to review full report at Codecov.
|
Client/README.md
Outdated
|
||
namespace Examples | ||
{ | ||
public static class WriteLineProtocol |
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.
Rename to WriteApiAsyncExample
Client/WriteApiAsync.cs
Outdated
Arguments.CheckNonEmptyString(org, nameof(org)); | ||
Arguments.CheckNotNull(precision, nameof(precision)); | ||
|
||
foreach (var record in records) await WriteRecordAsync(bucket, org, precision, record); |
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 could produce more than one request. Please change implementation to concat whole list into one request.
8164b18
to
5497178
Compare
Closes #23
Added WriteApiAsync for asynchronous write without batching.