From 140ab4b7c16a7fd2b1a77a8ddb91a5c3144b497a Mon Sep 17 00:00:00 2001 From: Klimov Sergey Date: Thu, 9 May 2024 00:28:12 +0800 Subject: [PATCH] Fixed interruption of repetitions if the parent contact was not closed, unlike the one created next --- ton/retrier.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ton/retrier.go b/ton/retrier.go index 31a7716d..e65191d8 100644 --- a/ton/retrier.go +++ b/ton/retrier.go @@ -35,6 +35,14 @@ func (w *retryClient) QueryLiteserver(ctx context.Context, payload tl.Serializab continue } + if errors.Is(err, context.DeadlineExceeded) { + err := ctx.Err() + if err != nil { + return err + } + + continue + } return err }