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

[Observer] Ambiguous references #6547

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

UlyanaAndrukhiv
Copy link
Contributor

Closes: #6344

Context

This PR resolves ambiguities in structs references to improve code clarity and consistency in the codebase.
Specifically, it:

  • modified the access of bootstrapNodeAddresses and bootstrapNodePublicKeysconfiguration fields in the FlowNodeBuilder and reused them in the follower and observer .
  • reused BuildPublicLibp2pNode for follower and observer builders to avoid duplication of code.

@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 0% with 32 lines in your changes missing coverage. Please review.

Project coverage is 41.29%. Comparing base (efd21c1) to head (624cbda).

Files with missing lines Patch % Lines
cmd/scaffold.go 0.00% 15 Missing ⚠️
follower/follower_builder.go 0.00% 7 Missing ⚠️
cmd/observer/node_builder/observer_builder.go 0.00% 6 Missing ⚠️
integration/localnet/builder/bootstrap.go 0.00% 2 Missing ⚠️
integration/testnet/network.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6547      +/-   ##
==========================================
+ Coverage   41.26%   41.29%   +0.02%     
==========================================
  Files        2031     2031              
  Lines      145883   145783     -100     
==========================================
- Hits        60204    60201       -3     
+ Misses      79459    79360      -99     
- Partials     6220     6222       +2     
Flag Coverage Δ
unittests 41.29% <0.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@UlyanaAndrukhiv UlyanaAndrukhiv marked this pull request as ready for review October 9, 2024 09:32
cmd/scaffold.go Outdated Show resolved Hide resolved
return nil, fmt.Errorf("could not create bootstrap identities: %w", err)
}

for _, b := range ids {
Copy link
Collaborator

@Guitarheroua Guitarheroua Oct 10, 2024

Choose a reason for hiding this comment

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

@peterargue I think, this is the correct fix from Uliana, as for me these two for loops look identical, sort of copy-paste mistake.

Copy link
Collaborator

@Guitarheroua Guitarheroua left a comment

Choose a reason for hiding this comment

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

Looks good to me.

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.

[Observer] Ambiguous references
3 participants