aboutsummaryrefslogtreecommitdiff
path: root/cgi/servers.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-08 13:33:07 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-08 13:33:07 +0000
commit9470ad27f2c725ceeaa6ca8c727670d59fdb5588 (patch)
treeb76e7807bb7624928d9b6d6fad8bad4ca47f955c /cgi/servers.go
parent82452d909a8c4ed1147817a1e23d20b090685d2c (diff)
downloadcommunique-9470ad27f2c725ceeaa6ca8c727670d59fdb5588.tar.gz
dont abort whole loop due to one bad subscriber delivery
Diffstat (limited to '')
-rw-r--r--cgi/servers.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgi/servers.go b/cgi/servers.go
index 1f15227..44a636c 100644
--- a/cgi/servers.go
+++ b/cgi/servers.go
@@ -161,24 +161,24 @@ func processTick(h config.Handler, output []byte, persister *models.Persister, l
actorKeyUrl, err := urls.UrlProfileKey(h.Name, cfg.Domain)
if err != nil {
logger.Error(err)
- return
+ continue
}
parsedUrl, err := url.Parse(joinedUrl)
if err != nil {
logger.Error(err)
- return
+ continue
}
request, err := signed.SignedRequest(h, []byte(payload), parsedUrl, actorKeyUrl)
if err != nil {
logger.Error(err)
- return
+ continue
}
client := &http.Client{}
response, err := client.Do(request)
if err != nil {
logger.Errorf("could not send activity request: %w", err)
- return
+ continue
}
responseBody, err := io.ReadAll(response.Body)
defer response.Body.Close()