Skip to content

Commit

Permalink
Do not spawn keep alive channel before lock taken
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Reshke committed Mar 29, 2024
1 parent 7fd4346 commit 9079bef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coordinator/provider/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ var _ coordinator.Coordinator = &qdbCoordinator{}
// TODO : unit tests
func (qc *qdbCoordinator) watchRouters(ctx context.Context) {
for {
/* check we are still coordinator */
spqrlog.Zero.Debug().Msg("start routers watch iteration")

// TODO: lock router
Expand Down Expand Up @@ -278,6 +279,7 @@ func (qc *qdbCoordinator) watchRouters(ctx context.Context) {
}
}

// TODO: configure sleep
time.Sleep(time.Second)
}
}
Expand Down

0 comments on commit 9079bef

Please sign in to comment.