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

Upgrade index provider to sti with bindnode schema #200

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

masih
Copy link
Member

@masih masih commented Mar 17, 2022

Reflect changes in storetheindex that replaces IPLD codegen schema with
bindnode structs.

See:

@masih masih requested a review from gammazero March 17, 2022 15:26
@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2022

Codecov Report

Merging #200 (a20acdd) into main (305bfab) will increase coverage by 0.62%.
The diff coverage is 43.67%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #200      +/-   ##
==========================================
+ Coverage   38.80%   39.42%   +0.62%     
==========================================
  Files          52       52              
  Lines        3662     3632      -30     
==========================================
+ Hits         1421     1432      +11     
+ Misses       1973     1932      -41     
  Partials      268      268              
Impacted Files Coverage Δ
cmd/provider/internal/client_store.go 0.00% <0.00%> (ø)
mock/interface.go 33.33% <33.33%> (ø)
engine/chunker/cached_chunker.go 60.99% <66.66%> (+0.41%) ⬆️
engine/engine.go 61.56% <66.66%> (+0.97%) ⬆️

@masih masih force-pushed the masih/sti-upgrade-bindnode branch 3 times, most recently from 32ac6f5 to 8979e83 Compare March 22, 2022 11:00
@masih masih requested a review from willscott March 22, 2022 11:05
Reflect changes in storetheindex that replaces IPLD codegen schema with
bindnode structs.

See:
- ipni/storetheindex#268
@masih masih force-pushed the masih/sti-upgrade-bindnode branch from 8979e83 to a20acdd Compare March 22, 2022 12:08
mdBytes, err := md.MarshalBinary()
if err != nil {
// Sign the advertisement.
if err := adv.Sign(e.key); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: err already defined

Suggested change
if err := adv.Sign(e.key); err != nil {
if err = adv.Sign(e.key); err != nil {

Copy link
Member Author

Choose a reason for hiding this comment

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

I intentionally changed that for tighter scope of err

@masih masih merged commit 07e2f7c into main Mar 22, 2022
@masih masih deleted the masih/sti-upgrade-bindnode branch March 22, 2022 12:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants