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 50d15d2 commit 2246b66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,9 @@ public void batchUnSubscribe(List<ConsumerConfig> configs) {
public void destroy() {
// 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
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public static Config buildKubernetesConfig(RegistryConfig registryConfig) {

private static String buildMasterUrl(RegistryConfig registryConfig) {
String address = registryConfig.getAddress();
// TODO maybe use Config property
if (StringUtils.isNotBlank(address)) {
return "http://" + address;
}
Expand Down

0 comments on commit 2246b66

Please sign in to comment.