Only limit context for fetching missing auth/prev events (#2131)

This commit is contained in:
Neil Alexander 2022-01-31 10:39:33 +00:00 committed by GitHub
parent 4281976df9
commit a271fde8f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 11 deletions

View file

@ -120,7 +120,7 @@ func (r *Inputer) Start() error {
nats.DeliverAll(),
// Ensure that NATS doesn't try to resend us something that wasn't done
// within the period of time that we might still be processing it.
nats.AckWait(MaximumProcessingTime+(time.Second*10)),
nats.AckWait((MaximumMissingProcessingTime*2)+(time.Second*10)),
)
return err
}