Skip to content

Commit

Permalink
Remove wait on alerting
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Jul 29, 2020
1 parent 4d6b00e commit a28f2e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions goserverapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,6 @@ func init() {
func (s *GoServer) RaiseIssue(title, body string) {
if time.Now().Before(s.alertWait) {
s.AlertsSkipped++
return
}

s.alertWait = time.Now().Add(time.Minute * 10)
Expand Down Expand Up @@ -1297,7 +1296,7 @@ func (s *GoServer) BounceIssue(title, body string, job string) {
_, err := client.AddIssue(ctx, &pbgh.Issue{Service: job, Title: title, Body: body}, grpc.FailFast(false))
issueBounces.With(prometheus.Labels{"error": fmt.Sprintf("%v", err)}).Inc()
if err != nil {
s.alertError = fmt.Sprintf("Failure to add issue: %v", err)
s.alertError = fmt.Sprintf("Failure to add issue: %v", err)
}
} else {
s.alertError = fmt.Sprintf("Cannot locate githubcard")
Expand Down

0 comments on commit a28f2e0

Please sign in to comment.