Skip to content

Commit

Permalink
Break out if g.Ctx is done
Browse files Browse the repository at this point in the history
  • Loading branch information
manishrjain committed Oct 5, 2020
1 parent c64c889 commit a8a47af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worker/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,9 @@ func (g *groupi) processOracleDeltaStream() {
if err == nil {
break
}
if g.Ctx().Err() != nil {
break
}
glog.Errorf("While proposing delta with MaxAssigned: %d and num txns: %d."+
" Error=%v. Retrying...\n", delta.MaxAssigned, len(delta.Txns), err)
}
Expand Down

0 comments on commit a8a47af

Please sign in to comment.