Skip to content
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

primitives: get rid of Cursor #8194

Merged
merged 4 commits into from
Dec 14, 2022
Merged

primitives: get rid of Cursor #8194

merged 4 commits into from
Dec 14, 2022

Conversation

mina86
Copy link
Contributor

@mina86 mina86 commented Dec 9, 2022

As per the TODO, take &[u8; 36] in ValueRef::decode and stop using
Cursor. This makes the method considerably simpler without making the
call site more complex. While dealing with ValueRef, stop using
Cursor in account_id_to_shard_id as well.

Issue: #7327

As per the TODO, take `&[u8; 36]` in ValueRef::decode and stop using
Cursor.  This makes the method considerably simpler without making the
call site more complex.  While dealing with ValueRef, stop using
Cursor in account_id_to_shard_id as well.

Issue: near#7327
@mina86 mina86 requested a review from a team as a code owner December 9, 2022 02:04
@mina86 mina86 requested a review from nikurt December 9, 2022 02:04
Copy link
Contributor

@nikurt nikurt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contributions :)

@mina86
Copy link
Contributor Author

mina86 commented Dec 9, 2022

tests::network::ban_peers::connect_to_unbanned_peer appears flaky.

@near-bulldozer near-bulldozer bot merged commit 9028901 into near:master Dec 14, 2022
@mina86 mina86 deleted the b branch December 14, 2022 22:38
nikurt pushed a commit to nikurt/nearcore that referenced this pull request Dec 19, 2022
As per the TODO, take `&[u8; 36]` in ValueRef::decode and stop using
Cursor.  This makes the method considerably simpler without making the
call site more complex.  While dealing with ValueRef, stop using
Cursor in account_id_to_shard_id as well.

Issue: near#7327
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants