Commit 5e2bca0d authored by lukasburgey's avatar lukasburgey
Browse files

Don't retry replies when hitting a 404

parent f985f247
Pipeline #85391 passed with stages
in 42 seconds
...@@ -268,7 +268,10 @@ func (sink *Sink) sendReply(reply deps.Reply) (err error) { ...@@ -268,7 +268,10 @@ func (sink *Sink) sendReply(reply deps.Reply) (err error) {
body = []byte{} body = []byte{}
} }
if resp.StatusCode != 200 { if resp.StatusCode == 404 {
reply.Log("sendReply failed: (status: %v, body: %s), will not retry!", resp.StatusCode, body)
return
} else if resp.StatusCode != 200 {
err = fmt.Errorf("sendReply failed: (status: %v, body: %s)", resp.StatusCode, body) err = fmt.Errorf("sendReply failed: (status: %v, body: %s)", resp.StatusCode, body)
return return
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment