Skip to content

Commit

Permalink
refactor(event): update event type name
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jan 11, 2024
1 parent bf0a0b7 commit b260178
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/service/event-ingester/event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const (
TypeBeaconETHV1BeaconBlobSidecar Type = v1.BeaconBlobSidecarType
TypeBeaconEthV1ProposerDuty Type = v1.BeaconProposerDutyType
TypeBeaconP2PAttestation Type = v1.BeaconP2PAttestationType
TypeBeaconEthV1ElaboratedAttestation Type = v2.BeaconBlockElaboratedAttestationType
TypeBeaconEthV2BeaconElaboratedAttestation Type = v2.BeaconBlockElaboratedAttestationType
)

type Event interface {
Expand Down Expand Up @@ -144,7 +144,7 @@ func New(eventType Type, log logrus.FieldLogger, event *xatu.DecoratedEvent, cac
return v1.NewBeaconBlobSidecar(log, event), nil
case TypeBeaconEthV1ProposerDuty:
return v1.NewBeaconProposerDuty(log, event), nil
case TypeBeaconEthV1ElaboratedAttestation:
case TypeBeaconEthV2BeaconElaboratedAttestation:
return v2.NewBeaconBlockElaboratedAttestation(log, event), nil
default:
return nil, fmt.Errorf("event type %s is unknown", eventType)
Expand Down

0 comments on commit b260178

Please sign in to comment.