Skip to content

Commit

Permalink
Fixes apache#7512 handle exception when policy is updated. (apache#7514)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecaat authored Jul 11, 2020
1 parent d97b57c commit a55a405
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ public CompletableFuture<Void> onPoliciesUpdate(Policies data) {
}
});
replicators.forEach((name, replicator) ->
replicator.getRateLimiter().get().onPoliciesUpdate(data)
replicator.getRateLimiter().ifPresent(rateLimiter -> rateLimiter.onPoliciesUpdate(data))
);
checkMessageExpiry();
CompletableFuture<Void> replicationFuture = checkReplicationAndRetryOnFailure();
Expand Down

0 comments on commit a55a405

Please sign in to comment.