fix(auth): resolve drain label for correct loop termination in cliproxy service

This commit is contained in:
Luis Pater
2025-09-23 08:20:36 +08:00
parent 6046a8c95b
commit ec08500924

View File

@@ -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
}
}
}