Skip to content

Commit

Permalink
Add back missing lock
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Dec 14, 2023
1 parent 25d78f4 commit 8512108
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions beacon-chain/rpc/core/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ func (s *Service) GetAttestationData(
s.AttestationCache.RLock()
res, err := s.AttestationCache.Get(ctx)
if err != nil {
s.AttestationCache.RUnlock()
return nil, &RpcError{Reason: Internal, Err: errors.Errorf("could not retrieve data from attestation cache: %v", err)}
}
if res != nil && res.Slot == req.Slot {
Expand Down

0 comments on commit 8512108

Please sign in to comment.