Skip to content

Commit

Permalink
slow_consumer update
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Plotnikov committed Oct 4, 2023
1 parent d4b64e5 commit fe4c51b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/exactpro/th2/FixHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,7 @@ private void setupSlowConsumerStrategy(RuleConfiguration configuration) {
}

private void cleanupSlowConsumerStrategy() {
strategy.updateReceiveMessageStrategy(x -> {x.setReceivePreprocessor(this::defaultMessageProcessor); return Unit.INSTANCE;});
try {
Thread.sleep(strategy.getState().getConfig().getCleanUpDuration().toMillis());
} catch (Exception e) {
Expand Down

0 comments on commit fe4c51b

Please sign in to comment.