mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 21:10:51 +08:00
fix(auth): resolve drain label for correct loop termination in cliproxy service
This commit is contained in:
@@ -98,12 +98,13 @@ func (s *Service) consumeAuthUpdates(ctx context.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.handleAuthUpdate(ctx, update)
|
s.handleAuthUpdate(ctx, update)
|
||||||
|
labelDrain:
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case nextUpdate := <-s.authUpdates:
|
case nextUpdate := <-s.authUpdates:
|
||||||
s.handleAuthUpdate(ctx, nextUpdate)
|
s.handleAuthUpdate(ctx, nextUpdate)
|
||||||
default:
|
default:
|
||||||
break
|
break labelDrain
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user