diff --git a/reactor-extra/src/main/java/reactor/cache/CacheMono.java b/reactor-extra/src/main/java/reactor/cache/CacheMono.java index 93ca874f0..62d310498 100644 --- a/reactor-extra/src/main/java/reactor/cache/CacheMono.java +++ b/reactor-extra/src/main/java/reactor/cache/CacheMono.java @@ -170,7 +170,7 @@ public static MonoCacheBuilderCacheMiss lookup( Function>> reader, KEY key) { return otherSupplier -> writer -> Mono.defer(() -> reader.apply(key) - .switchIfEmpty(Mono.defer(() -> otherSupplier.get()) + .switchIfEmpty(Mono.defer(otherSupplier) .materialize() .flatMap(signal -> writer.apply(key, signal) .then(Mono.just(signal))