Skip to content

Commit

Permalink
error if can't retry on more hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
beltran committed Oct 11, 2018
1 parent aa46e85 commit ffb9c15
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions query_executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ func (q *queryExecutor) run(qry ExecutableQuery, specWG *sync.WaitGroup, results
case RetryNextHost:
// retry on the next host
selectedHost = hostIter()
if selectedHost == nil {
results <- queryResponse{iter: iter}
}
continue
default:
// Undefined? Return nil and error, this will panic in the requester
Expand Down

0 comments on commit ffb9c15

Please sign in to comment.