Skip to content
This repository has been archived by the owner on Jul 23, 2023. It is now read-only.

Commit

Permalink
Do not retry batch update (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 authored Feb 25, 2020
1 parent 3787a22 commit 0403a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/batch_send_updates.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (h *BatchSendUpdates) ServeHTTP(w http.ResponseWriter, r *http.Request) {
ctx := r.Context()
if err := h.BatchSendUpdates.Do(ctx); err != nil {
h.Logger.Errorf(ctx, "error while sending updates: %s", err)
w.WriteHeader(http.StatusInternalServerError)
w.WriteHeader(http.StatusOK)
return
}
w.WriteHeader(http.StatusOK)
Expand Down

0 comments on commit 0403a69

Please sign in to comment.