From d6a8e6a64827431a690f7e8f791d09583833f9b9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 12 Dec 2025 16:16:06 +0200 Subject: [PATCH] gotd: don't return run context error from channel state --- pkg/gotd/telegram/updates/state_channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gotd/telegram/updates/state_channel.go b/pkg/gotd/telegram/updates/state_channel.go index 989b58ca..e2fab62a 100644 --- a/pkg/gotd/telegram/updates/state_channel.go +++ b/pkg/gotd/telegram/updates/state_channel.go @@ -98,7 +98,7 @@ func (s *channelState) Push(ctx context.Context, u channelUpdate) error { case <-ctx.Done(): return ctx.Err() case <-s.runCtx.Done(): - return s.runCtx.Err() + return nil case s.updates <- u: return nil }