-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
Removes all usage of block_on, and use a oneshot channel instead. #1315
Conversation
261f6cc
to
b9542cb
Compare
8674eca
to
31166a1
Compare
0d348e3
to
64557a4
Compare
Calling `block_on` panics in certain context. For instance, it panics when it is called in a the context of another call to block. Using it in tantivy is unnecessary. We replace it by a thin wrapper around a oneshot channel that supports both async/sync. Closes #898
0f55152
to
10c6386
Compare
Codecov Report
@@ Coverage Diff @@
## main #1315 +/- ##
==========================================
+ Coverage 94.04% 94.26% +0.21%
==========================================
Files 230 232 +2
Lines 39384 40800 +1416
==========================================
+ Hits 37040 38461 +1421
+ Misses 2344 2339 -5
Continue to review full report at Codecov.
|
10c6386
to
7f0ebdc
Compare
8187648
to
1edd9d9
Compare
1edd9d9
to
a51f15d
Compare
Co-authored-by: PSeitz <PSeitz@users.noreply.github.com>
b4fca1f
to
c7cb458
Compare
) * Removes all usage of block_on, and use a oneshot channel instead. Calling `block_on` panics in certain context. For instance, it panics when it is called in a the context of another call to block. Using it in tantivy is unnecessary. We replace it by a thin wrapper around a oneshot channel that supports both async/sync. * Removing needless uses of async in the API. Co-authored-by: PSeitz <PSeitz@users.noreply.github.com>
Calling
block_on
panics in certain context.For instance, it panics when it is called in a the context of another
call to block.
Using it in tantivy is unnecessary. We replace it by a thin wrapper
around a oneshot channel that supports both async/sync.