From 9470ad27f2c725ceeaa6ca8c727670d59fdb5588 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 8 Jan 2023 08:33:07 -0500 Subject: dont abort whole loop due to one bad subscriber delivery --- cgi/servers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cgi') 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() -- cgit v1.2.3