Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cleanup][broker]remove unnecessary variable #17768

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public class NamespaceBundleFactory {
private final AsyncLoadingCache<NamespaceName, NamespaceBundles> bundlesCache;

private final PulsarService pulsar;
private final MetadataCache<Policies> policiesCache;
private final Duration maxRetryDuration = Duration.ofSeconds(10);

public NamespaceBundleFactory(PulsarService pulsar, HashFunction hashFunc) {
Expand All @@ -84,7 +83,6 @@ public NamespaceBundleFactory(PulsarService pulsar, HashFunction hashFunc) {
pulsar.getLocalMetadataStore().registerListener(this::handleMetadataStoreNotification);

this.pulsar = pulsar;
this.policiesCache = pulsar.getConfigurationMetadataStore().getMetadataCache(Policies.class);
}

private CompletableFuture<NamespaceBundles> loadBundles(NamespaceName namespace, Executor executor) {
Expand Down