Skip to content

Commit

Permalink
Move to a private instance field
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Jan 3, 2025
1 parent d3737e4 commit ac992f7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,11 @@ public void onRemoval(ShardId shardId, String fieldName, boolean wasEvicted, lon
this.timestampFieldMapperService = new TimestampFieldMapperService(settings, threadPool, this);
this.postRecoveryMerger = new PostRecoveryMerger(settings, threadPool.executor(ThreadPool.Names.FORCE_MERGE), this::getShardOrNull);
this.searchOperationListeners = builder.searchOperationListener;

List<? extends SlowLogFieldProvider> slowLogFieldProviders = pluginsService.loadServiceProviders(SlowLogFieldProvider.class);
this.slowLogFieldProvider = new SlowLogFieldProvider() {
private List<? extends SlowLogFieldProvider> slowLogFieldProviders = pluginsService.loadServiceProviders(
SlowLogFieldProvider.class
);

@Override
public void init(IndexSettings indexSettings) {
slowLogFieldProviders.forEach(provider -> provider.init(indexSettings));
Expand Down

0 comments on commit ac992f7

Please sign in to comment.