code: public void unSubscribe() {
          if (StringUtils.isEmpty(consumerConfig.getDirectUrl()) && consumerConfig.isSubscribe()) {
              List<RegistryConfig> registryConfigs = consumerConfig.getRegistry();
              if (registryConfigs != null) {
                  for (RegistryConfig registryConfig : registryConfigs) {
                      Registry registry = RegistryFactory.getRegistry(registryConfig);
                      try {
                          registry.unSubscribe(consumerConfig);
                      } catch (Exception e) {
                          String appName = consumerConfig.getAppName();
                          if (LOGGER.isWarnEnabled(appName)) {
                              LOGGER.warnWithApp(appName,
                                  "Catch exception when unSubscribe from registry: " + registryConfig.getId()
                                      + ", but you can ignore if it's called by JVM shutdown hook", e);
                          }
                      }
                  }
              }
          }
      }
docs: 取消订阅服务列表