Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <rleungx@gmail.com>
  • Loading branch information
rleungx committed Aug 10, 2023
1 parent d30aa24 commit 2d9fab8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/mcs/resourcemanager/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (s *Server) primaryElectionLoop() {

for {
select {
case <-s.ctx.Done():
case <-s.serverLoopCtx.Done():
log.Info("server is closed, exit resource manager primary election loop")
return
default:
Expand Down
2 changes: 1 addition & 1 deletion pkg/mcs/scheduling/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (s *Server) primaryElectionLoop() {

for {
select {
case <-s.ctx.Done():
case <-s.serverLoopCtx.Done():
log.Info("server is closed, exit resource manager primary election loop")
return
default:
Expand Down

0 comments on commit 2d9fab8

Please sign in to comment.