mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
Fix attestation broadcast recovery metric (#7629)
This commit is contained in:
parent
c59edb3358
commit
9ea69a070e
@ -84,9 +84,8 @@ func (s *Service) broadcastAttestation(ctx context.Context, subnet uint64, att *
|
||||
trace.Int64Attribute("subnet", int64(subnet)),
|
||||
)
|
||||
|
||||
attestationBroadcastAttempts.Inc()
|
||||
|
||||
if !hasPeer {
|
||||
attestationBroadcastAttempts.Inc()
|
||||
if err := func() error {
|
||||
s.subnetLocker(subnet).Lock()
|
||||
defer s.subnetLocker(subnet).Unlock()
|
||||
|
Loading…
Reference in New Issue
Block a user