Openstatus www.openstatus.dev

fix error nil (#1546)

authored by

Thibault Le Ouay and committed by
GitHub
9e1be93e c2010725

+1 -1
+1 -1
apps/checker/handlers/dns.go
··· 298 298 299 299 result, err := backoff.Retry(ctx, op, backoff.WithBackOff(backoff.NewExponentialBackOff()), backoff.WithMaxTries(uint(retry))) 300 300 data.Latency = latency 301 - data.Records = FormatDNSResult(result) 302 301 303 302 if len(req.RawAssertions) > 0 { 304 303 if j, err := json.Marshal(req.RawAssertions); err == nil { ··· 313 312 return 314 313 } 315 314 315 + data.Records = FormatDNSResult(result) 316 316 if req.RequestId != 0 { 317 317 if err := h.TbClient.SendEvent(ctx, data, dataSourceName); err != nil { 318 318 log.Ctx(ctx).Error().Err(err).Msg("failed to send event to tinybird")