Remove duplicate updates
### Motivation
Offload has been updated asynchronously in `checkPersistencePolicies()` on line 1888, and there is no need to update repeatedly.
@@ -1923,10 +1923,6 @@ public class PersistentTopic extends AbstractTopic implements Topic, AddEntryCal
if (this.subscribeRateLimiter.isPresent()) {
subscribeRateLimiter.get().onPoliciesUpdate(data);
}
- getManagedLedger().getConfig().setLedgerOffloader(
- brokerService.pulsar().getManagedLedgerOffloader(
- TopicName.get(topic).getNamespaceObject(), data.offload_policies));
-
return CompletableFuture.allOf(replicationFuture, dedupFuture, persistentPoliciesFuture);
}
