From ec08500924517ce3751f83b38e82fd89757333bf Mon Sep 17 00:00:00 2001 From: Luis Pater Date: Tue, 23 Sep 2025 08:20:36 +0800 Subject: [PATCH] fix(auth): resolve drain label for correct loop termination in `cliproxy` service --- sdk/cliproxy/service.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/cliproxy/service.go b/sdk/cliproxy/service.go index 908a7a3d..e5546a52 100644 --- a/sdk/cliproxy/service.go +++ b/sdk/cliproxy/service.go @@ -98,12 +98,13 @@ func (s *Service) consumeAuthUpdates(ctx context.Context) { return } s.handleAuthUpdate(ctx, update) + labelDrain: for { select { case nextUpdate := <-s.authUpdates: s.handleAuthUpdate(ctx, nextUpdate) default: - break + break labelDrain } } }