Skip to content

Commit

Permalink
Left over simplification from the last commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
manishrjain committed Jun 29, 2018
1 parent 30575a8 commit 3b5bc66
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions worker/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,6 @@ func (g *groupi) processOracleDeltaStream() {
if err != nil {
x.Printf("Error while calling Oracle %v\n", err)
elog.Errorf("Error while calling Oracle %v", err)
cancel()
time.Sleep(time.Second)
return
}
Expand Down Expand Up @@ -783,7 +782,6 @@ func (g *groupi) processOracleDeltaStream() {

ticker := time.NewTicker(time.Second)
defer ticker.Stop()
START:
for {
select {
case <-g.Node.stop:
Expand All @@ -792,10 +790,8 @@ START:
// Only the leader needs to connect to Zero and get transaction
// updates.
if g.Node.AmLeader() {
break START
blockingReceiveAndPropose()
}
}
}
blockingReceiveAndPropose()
goto START
}

0 comments on commit 3b5bc66

Please sign in to comment.