From 48cdf3ae8f68c01a5c02ecc370d812e43a999ca8 Mon Sep 17 00:00:00 2001 From: kruskall <99559985+kruskall@users.noreply.github.com> Date: Wed, 13 Nov 2024 21:43:23 +0100 Subject: [PATCH] Update elasticsearch.go --- internal/agentcfg/elasticsearch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/agentcfg/elasticsearch.go b/internal/agentcfg/elasticsearch.go index 43fdd23211a..dcc371ef947 100644 --- a/internal/agentcfg/elasticsearch.go +++ b/internal/agentcfg/elasticsearch.go @@ -265,7 +265,7 @@ func (f *ElasticsearchFetcher) clearScroll(ctx context.Context, scrollID string) f.logger.Warn("clearscroll request returned error: %s", resp.Status()) } - defer resp.Body.Close() + resp.Body.Close() } func (f *ElasticsearchFetcher) singlePageRefresh(ctx context.Context, scrollID string) (cacheResult, error) {