Skip to content

Commit

Permalink
Merge pull request #586 from Security-Onion-Solutions/cogburn/scrolli…
Browse files Browse the repository at this point in the history
…ng-fix

No More Overshadowing Error
  • Loading branch information
coreyogburn authored Jul 22, 2024
2 parents 4739d31 + d6f800d commit 01610f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/modules/elastic/elasticeventstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ func (store *ElasticEventstore) Scroll(ctx context.Context, criteria *model.Even
indexes = strings.Split(store.index, ",")
}

res, err := store.esClient.Search(
var res *esapi.Response

res, err = store.esClient.Search(
store.esClient.Search.WithContext(ctx),
store.esClient.Search.WithIndex(indexes...),
store.esClient.Search.WithBody(strings.NewReader(query)),
Expand Down

0 comments on commit 01610f5

Please sign in to comment.