File tree 1 file changed +3
-3
lines changed
components/ingest-service/server
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -247,9 +247,9 @@ func (s *ChefIngestServer) ProcessNodeDelete(ctx context.Context,
247
247
return & response.ProcessNodeDeleteResponse {}, nil
248
248
}
249
249
250
- func (s * ChefIngestServer ) GetIndicesEligableForReindexing () (map [string ]backend.IndexSettingsVersion , error ) {
250
+ func (s * ChefIngestServer ) GetIndicesEligableForReindexing (ctx context. Context ) (map [string ]backend.IndexSettingsVersion , error ) {
251
251
var eligableIndices = make (map [string ]backend.IndexSettingsVersion )
252
- indices , err := s .client .GetIndices (context . Background () )
252
+ indices , err := s .client .GetIndices (ctx )
253
253
if err != nil {
254
254
return nil , status .Errorf (codes .Internal , "failed to fetch indices: %s" , err )
255
255
}
@@ -283,7 +283,7 @@ OuterLoop:
283
283
func (s * ChefIngestServer ) StartReindex (ctx context.Context , req * ingest.StartReindexRequest ) (* ingest.StartReindexResponse , error ) {
284
284
log .Info ("Received request to start reindexing" )
285
285
286
- indices , err := s .GetIndicesEligableForReindexing ()
286
+ indices , err := s .GetIndicesEligableForReindexing (ctx )
287
287
288
288
if err != nil {
289
289
return nil , status .Errorf (codes .Internal , "failed to fetch indices: %s" , err )
You can’t perform that action at this time.
0 commit comments