forked from vikunja/vikunja
Add TODO comment for http retries
This commit is contained in:
parent
6ce1a84bb0
commit
d1a301fb3c
|
@ -26,6 +26,7 @@ type WebhookNotification struct {
|
||||||
// SendWebhook sends the notification to the configured endpoint
|
// SendWebhook sends the notification to the configured endpoint
|
||||||
func SendWebhook(w *WebhookNotification) error {
|
func SendWebhook(w *WebhookNotification) error {
|
||||||
_, err := DoPost(w.endpointUrl, w.body, w.headers)
|
_, err := DoPost(w.endpointUrl, w.body, w.headers)
|
||||||
|
// TODO: Have response-code basis exponential retries
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue