Skip to content

Commit

Permalink
Merge pull request #170 from ethpandaops/fix/broken-beacon-committee-…
Browse files Browse the repository at this point in the history
…events

fix(sentry): Fix broken BeaconCommittee events
  • Loading branch information
Savid authored Sep 4, 2023
2 parents b46aa8a + cda2908 commit dc19f26
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/sentry/beacon_committees.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ func (s *Sentry) startBeaconCommitteesWatcher(ctx context.Context) error {
func (s *Sentry) createNewBeaconCommitteeEvent(ctx context.Context, epoch phase0.Epoch, committees []*eth2v1.BeaconCommittee) error {
now := time.Now()

meta, err := s.createNewClientMeta(ctx)
if err != nil {
s.log.WithError(err).Error("Failed to create client meta when handling beacon committee event")

return err
}

// Create an event for every committee.
for _, committee := range committees {
meta, err := s.createNewClientMeta(ctx)
if err != nil {
s.log.WithError(err).Error("Failed to create client meta when handling beacon committee event")

continue
}

event := v1.NewBeaconCommittee(s.log, committee, epoch, now, s.beacon, meta, s.duplicateCache.BeaconEthV1BeaconCommittee)

decoratedEvent, err := event.Decorate(ctx)
Expand Down

0 comments on commit dc19f26

Please sign in to comment.