fix error message of subscriber (#11622)

Co-authored-by: terencechain <terence@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
int88
2022-11-08 00:44:38 +08:00
committed by GitHub
parent 19f6d3bef6
commit 4d68211ad4
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ import (
func (s *Service) beaconAggregateProofSubscriber(_ context.Context, msg proto.Message) error {
a, ok := msg.(*ethpb.SignedAggregateAttestationAndProof)
if !ok {
return fmt.Errorf("message was not type *eth.SignedAggregateAttestationAndProof, type=%T", msg)
return fmt.Errorf("message was not type *ethpb.SignedAggregateAttestationAndProof, type=%T", msg)
}
if a.Message.Aggregate == nil || a.Message.Aggregate.Data == nil {

View File

@@ -13,7 +13,7 @@ import (
func (s *Service) syncCommitteeMessageSubscriber(_ context.Context, msg proto.Message) error {
m, ok := msg.(*ethpb.SyncCommitteeMessage)
if !ok {
return fmt.Errorf("message was not type *eth.SyncCommitteeMessage, type=%T", msg)
return fmt.Errorf("message was not type *ethpb.SyncCommitteeMessage, type=%T", msg)
}
if m == nil {

View File

@@ -15,7 +15,7 @@ import (
func (s *Service) syncContributionAndProofSubscriber(_ context.Context, msg proto.Message) error {
sContr, ok := msg.(*ethpb.SignedContributionAndProof)
if !ok {
return fmt.Errorf("message was not type *eth.SignedAggregateAttestationAndProof, type=%T", msg)
return fmt.Errorf("message was not type *ethpb.SignedContributionAndProof, type=%T", msg)
}
if sContr.Message == nil || sContr.Message.Contribution == nil {