Skip to content

Commit

Permalink
Create v3
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp94831 committed Apr 4, 2024
1 parent a3e30a1 commit 706141e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ public class LargeMessageKafkaApplicationUtils {
public static TopicHook createLargeMessageCleanUpHook(final Map<String, Object> kafkaProperties) {
final AbstractLargeMessageConfig largeMessageConfig = new AbstractLargeMessageConfig(kafkaProperties);
final LargeMessageStoringClient storer = largeMessageConfig.getStorer();
return storer::deleteAllFiles;
return new TopicHook() {
@Override
public void deleted(final String topic) {
storer.deleteAllFiles(topic);
}
};
}

/**
Expand Down

0 comments on commit 706141e

Please sign in to comment.