Skip to content

Commit

Permalink
flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed May 20, 2024
1 parent 15b49b3 commit c5a8e42
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
import ai.langstream.apigateway.config.TopicProperties;
import io.micrometer.core.instrument.Metrics;
import io.micrometer.core.instrument.binder.cache.GuavaCacheMetrics;
import java.util.function.Supplier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.function.Supplier;

@Configuration
public class TopicProducerCacheFactory {

Expand All @@ -39,12 +38,13 @@ public TopicProducerCache topicProducerCache(TopicProperties topicProperties) {
} else {
return new TopicProducerCache() {
@Override
public TopicProducer getOrCreate(Key key, Supplier<TopicProducer> topicProducerSupplier) {
public TopicProducer getOrCreate(
Key key, Supplier<TopicProducer> topicProducerSupplier) {
return topicProducerSupplier.get();
}

@Override
public void close() {
}
public void close() {}
};
}
}
Expand Down

0 comments on commit c5a8e42

Please sign in to comment.