node/pkg/processor: change threshold for Discord notifications
Change-Id: I09060ad46a47b6293b18cffd717492098ad6dda0
This commit is contained in:
parent
4972be80c3
commit
16c9f9036b
|
@ -101,11 +101,15 @@ func (p *Processor) handleCleanup(ctx context.Context) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
go func(v *vaa.VAA, hasSigs, wantSigs int, quorum bool, missing []string) {
|
// Send notification for individual message when quorum has failed or
|
||||||
if err := p.notifier.MissingSignaturesOnTransaction(v, hasSigs, wantSigs, quorum, missing); err != nil {
|
// more than one node is missing.
|
||||||
p.logger.Error("failed to send notification", zap.Error(err))
|
if !quorum || len(missing) > 1 {
|
||||||
}
|
go func(v *vaa.VAA, hasSigs, wantSigs int, quorum bool, missing []string) {
|
||||||
}(s.ourVAA, hasSigs, wantSigs, quorum, missing)
|
if err := p.notifier.MissingSignaturesOnTransaction(v, hasSigs, wantSigs, quorum, missing); err != nil {
|
||||||
|
p.logger.Error("failed to send notification", zap.Error(err))
|
||||||
|
}
|
||||||
|
}(s.ourVAA, hasSigs, wantSigs, quorum, missing)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue