From 94fb627c9e1457315320f64874b59dc924870e5a Mon Sep 17 00:00:00 2001 From: Niels Hofmans Date: Mon, 23 Oct 2023 09:01:30 +0200 Subject: [PATCH] fix: do not skip one host during fetch --- pkg/falcon/extractor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/falcon/extractor.go b/pkg/falcon/extractor.go index e005cc9..0a3be24 100644 --- a/pkg/falcon/extractor.go +++ b/pkg/falcon/extractor.go @@ -180,7 +180,7 @@ func GetMessages(config *config.Config, ctx context.Context) (results map[string step := 100 - for sliceStart := 0; sliceStart < len(hostResult.Payload.Resources); i += step { + for sliceStart := 0; sliceStart < len(hostResult.Payload.Resources); sliceStart += step { sliceEnd := sliceStart + step if sliceEnd > len(hostResult.Payload.Resources) { sliceEnd = len(hostResult.Payload.Resources)