Skip to content

Commit

Permalink
- fix process
Browse files Browse the repository at this point in the history
  • Loading branch information
psmagin committed Jun 21, 2024
1 parent 02d22e4 commit e149318
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,10 @@ private void indexResources(List<ResourceEvent> batch, Consumer<List<ResourceEve

for (var entry : batchByTenant.entrySet()) {
folioMessageBatchProcessor.consumeBatchWithFallback(entry.getValue(), KAFKA_RETRY_TEMPLATE_NAME,
executionService.executeSystemUserScoped(entry.getKey(), () -> indexConsumer),
events -> executionService.executeSystemUserScoped(entry.getKey(), () -> {
indexConsumer.accept(events);
return null;
}),
KafkaMessageListener::logFailedEvent);
}
}
Expand Down

0 comments on commit e149318

Please sign in to comment.