Skip to content

Commit

Permalink
Bugfix: return false if we're not retrying (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
ApsOps authored Dec 18, 2017
1 parent 1f8e4d2 commit 898a0b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func sendMessageToURL(msg string, queue Queue) bool {
}
if healthcheckURL != "" {
log.Printf("%s: Error hitting endpoint with msg '%s'... Error: %s", queue.Name, msg, err.Error())
break
return false
}
log.Printf("%s: Error hitting endpoint with msg '%s', retrying after 1 second... Error: %s", queue.Name, msg, err.Error())
time.Sleep(time.Second)
Expand Down

0 comments on commit 898a0b3

Please sign in to comment.