Skip to content

Commit

Permalink
Bugfix for race condition from rev. 066185a (how permanent?) (#47, #271)
Browse files Browse the repository at this point in the history
  • Loading branch information
climategadgets committed Oct 7, 2023
1 parent a0215c6 commit 564a926
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.time.Duration;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
Expand Down Expand Up @@ -63,7 +64,8 @@ public Flux<Object> parse(Set<ConnectorConfig> source) {

// Prevent multiple subscriptions
.publish()
.autoConnect();
.autoConnect()
.cache(Duration.ofSeconds(30));

// Start right away
flux.subscribe(e -> logger.debug("subscription: {}", e));
Expand Down

0 comments on commit 564a926

Please sign in to comment.