Increase /send context time in destination queue

This commit is contained in:
Neil Alexander 2020-10-09 16:49:58 +01:00
parent e1bf640103
commit 0df8620fd9
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -349,7 +349,7 @@ func (oq *destinationQueue) nextTransaction() (bool, error) {
// TODO: we should check for 500-ish fails vs 400-ish here,
// since we shouldn't queue things indefinitely in response
// to a 400-ish error
ctx, cancel = context.WithTimeout(context.Background(), time.Second*30)
ctx, cancel = context.WithTimeout(context.Background(), time.Minute*5)
defer cancel()
_, err = oq.client.SendTransaction(ctx, t)
switch err.(type) {