not listening on internal rater and scheduler no schedulet actions

This commit is contained in:
Radu Ioan Fericean
2012-07-30 14:38:13 +03:00
parent 0fa83723b4
commit 489b3de1b1
2 changed files with 4 additions and 1 deletions

View File

@@ -256,7 +256,7 @@ func main() {
go stopRaterSingnalHandler()
}
responder := &timespans.Responder{ExitChan: exitChan}
if rater_enabled && !balancer_enabled {
if rater_enabled && !balancer_enabled && rater_listen != INTERNAL {
go listenToRPCRequests(responder, rater_listen, rater_rpc_encoding)
}
if balancer_enabled {

View File

@@ -37,6 +37,9 @@ type scheduler struct {
func (s scheduler) loop() {
for {
if len(s.queue) == 0 {
<-restartLoop
}
a0 := s.queue[0]
now := time.Now()
if a0.GetNextStartTime().Equal(now) || a0.GetNextStartTime().Before(now) {