Skip to content

Commit

Permalink
support sofa registry kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
呈铭 committed Jan 26, 2024
1 parent e31f08c commit de944ef
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,14 @@ public void batchUnSubscribe(List<ConsumerConfig> configs) {

@Override
public void destroy() {
for (ProviderConfig providerConfig : providerInstances.keySet()) {
unRegister(providerConfig);
}
for (ConsumerConfig consumerConfig : consumerListeners.keySet()) {
unSubscribe(consumerConfig);
}
// unRegister provider
providerInstances.forEach((k, v) -> unRegister(k));
providerInstances.clear();

// unRegister consumer
consumerListeners.forEach((k, v) -> unSubscribe(k));
consumerListeners.clear();

// close kubernetes client
kubernetesClient.close();
}
Expand Down

0 comments on commit de944ef

Please sign in to comment.