mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
fix context deadline rejections (#13716)
This commit is contained in:
parent
800f3b572f
commit
cb8eb4e955
@ -286,6 +286,11 @@ func (s *Service) wrapAndReportValidation(topic string, v wrappedVal) (string, p
|
||||
return pubsub.ValidationIgnore
|
||||
}
|
||||
b, err := v(ctx, pid, msg)
|
||||
// We do not penalize peers if we are hitting pubsub timeouts
|
||||
// trying to process those messages.
|
||||
if b == pubsub.ValidationReject && ctx.Err() != nil {
|
||||
b = pubsub.ValidationIgnore
|
||||
}
|
||||
if b == pubsub.ValidationReject {
|
||||
fields := logrus.Fields{
|
||||
"topic": topic,
|
||||
|
Loading…
Reference in New Issue
Block a user