-
Notifications
You must be signed in to change notification settings - Fork 77
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
Allow to partially unwrap session iterator #3274
Conversation
bdd58fb
to
cec509b
Compare
7018c1c
to
ec0de6e
Compare
A good question is where to put tests for this? I haven't found anything for another |
ec0de6e
to
97fb035
Compare
aa71f43
to
eba7385
Compare
Approve is accedent, I was going to push "Comment" button.
And just a side note: what do you think about extending "getversion" RPC call to be able to query RPC server settings? Then we may include |
Makes sense for things that can probed from outside anyway. |
4c4cd7d
to
e6bfe73
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3274 +/- ##
==========================================
+ Coverage 85.16% 85.25% +0.08%
==========================================
Files 327 327
Lines 44267 44326 +59
==========================================
+ Hits 37702 37790 +88
+ Misses 5071 5039 -32
- Partials 1494 1497 +3 ☔ View full report in Codecov by Sentry. |
Linter job is unhappy about increment. |
@fyfyrchik, could you fix the issues that are left? We'll make it a part of 0.105 and release within a several days. |
e6bfe73
to
4fe5eee
Compare
There is CreateCallAndUnwrapIteratorScript() which can traverse iterator for nodes with sessions disabled. For other nodes this may still be beneficial: if there is a small number of items, we might read (or prefetch) all of them in one request. However, this script continues to work even for large collections, returning both accumulated array and remaining iterator. Signed-off-by: Evgenii Stratonikov <fyfyrchik@runbox.com>
It can be used to work with the results of CreateCallAndPrefetchIteratorScript() execution. The first item must be an array and the optional second item must be an iterator, containing remaining elements. Signed-off-by: Evgenii Stratonikov <fyfyrchik@runbox.com>
Check that is uses only 3 syscalls and also specify boundary behaviour. Signed-off-by: Evgenii Stratonikov <fyfyrchik@runbox.com>
Missing piece for perfect coverage. Check that an error is returned an no panic occurs. Signed-off-by: Evgenii Stratonikov <fyfyrchik@runbox.com>
4fe5eee
to
78050e8
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.
💖
Close #3272