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

feat(shwap/p2p): Bitswap Getter #3584

Merged
merged 7 commits into from
Jul 25, 2024
Merged

feat(shwap/p2p): Bitswap Getter #3584

merged 7 commits into from
Jul 25, 2024

Conversation

Wondertan
Copy link
Member

@Wondertan Wondertan commented Jul 22, 2024

Implements new Getter over Bitswap p2p composition.

This PR does not intend to implement unit tests for the Getter itself. Adding them here is not trivial as we don't have the Getter test suite, which will soon be replaced with the Accessor interface. The current coverage of every Block is sufficient to prove every method works while Getter itself is simply an adapter. We need this Getter temporary to accelerate testing of Shwap and replace it with an Accesor once we allocate time for refactorings.

@Wondertan Wondertan self-assigned this Jul 22, 2024
@Wondertan Wondertan added the kind:feat Attached to feature PRs label Jul 22, 2024
Copy link
Contributor

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

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

SGTM, maybe method docs?

share/shwap/p2p/bitswap/getter.go Outdated Show resolved Hide resolved
share/shwap/p2p/bitswap/getter.go Outdated Show resolved Hide resolved
share/shwap/p2p/bitswap/getter.go Outdated Show resolved Hide resolved
share/shwap/p2p/bitswap/getter.go Outdated Show resolved Hide resolved
share/shwap/p2p/bitswap/getter.go Outdated Show resolved Hide resolved
share/shwap/p2p/bitswap/getter.go Outdated Show resolved Hide resolved
share/shwap/p2p/bitswap/getter.go Outdated Show resolved Hide resolved
@Wondertan Wondertan force-pushed the shwap-bitswap-getter branch from 9f9377b to c4288b6 Compare July 25, 2024 21:55
@Wondertan Wondertan force-pushed the shwap-bitswap-getter branch from c4288b6 to b58c3fc Compare July 25, 2024 22:01
Copy link
Member

@walldiss walldiss left a comment

Choose a reason for hiding this comment

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

utAck

@Wondertan Wondertan merged commit c81e6d1 into shwap Jul 25, 2024
28 checks passed
@Wondertan Wondertan deleted the shwap-bitswap-getter branch July 25, 2024 22:27
Wondertan pushed a commit that referenced this pull request Aug 7, 2024
add store getter implementation of shwap.Getter. Unit are not implemented for same reason as #3584
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feat Attached to feature PRs shwap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants