-
Notifications
You must be signed in to change notification settings - Fork 205
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
Source messenger on ProcessReceivedMessage #5365
Source messenger on ProcessReceivedMessage #5365
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feat/multiple_p2p_messengers #5365 +/- ##
================================================================
- Coverage 80.33% 80.32% -0.01%
================================================================
Files 695 695
Lines 90497 90486 -11
================================================================
- Hits 72698 72685 -13
- Misses 12630 12631 +1
- Partials 5169 5170 +1
☔ View full report in Codecov by Sentry. |
@@ -13,8 +13,8 @@ import ( | |||
type FactoryArgs struct { | |||
RequesterConfig config.RequesterConfig | |||
ShardCoordinator sharding.Coordinator | |||
MainMessenger dataRetriever.TopicMessageHandler | |||
FullArchiveMessenger dataRetriever.TopicMessageHandler | |||
MainMessenger p2p.Messenger |
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.
We should evaluate that we can get rid of providing the messenger on the resolvers as the messenger is now provided on each data request. (next PR)
p2p/constants.go
Outdated
type MessageHandlerType = p2p.MessageHandlerType | ||
|
||
// RegularMessageHandler defines a message handler for the main network | ||
const RegularMessageHandler = p2p.RegularMessageHandler |
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.
👍
…andler type concept
} | ||
err = fullArchiveMessenger.SetPeerShardResolver(peerShardMapperFullArch) | ||
if err != nil { | ||
log.Error("error setting NewPeerShardMapper in p2p messenger for full archive network", "error", err) |
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.
log.Error("error setting a peer shard mapper in p2p messenger for full archive network", "error", err)
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.
pushed
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?