Skip to content

Commit

Permalink
fix wrong check of InvokerListener when export a service (fix issue_6…
Browse files Browse the repository at this point in the history
…269) (#6271)
  • Loading branch information
tswstarplanet authored Jun 8, 2020
1 parent 9cd3086 commit 91989ca
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,6 @@ public static void validateAbstractInterfaceConfig(AbstractInterfaceConfig confi
checkExtension(ProxyFactory.class, PROXY_KEY, config.getProxy());
checkExtension(Cluster.class, CLUSTER_KEY, config.getCluster());
checkMultiExtension(Filter.class, FILE_KEY, config.getFilter());
checkMultiExtension(InvokerListener.class, LISTENER_KEY, config.getListener());
checkNameHasSymbol(LAYER_KEY, config.getLayer());

List<MethodConfig> methods = config.getMethods();
Expand All @@ -312,7 +311,7 @@ public static void validateServiceConfig(ServiceConfig config) {
checkName(TOKEN_KEY, config.getToken());
checkPathName(PATH_KEY, config.getPath());

checkMultiExtension(ExporterListener.class, "listener", config.getListener());
checkMultiExtension(ExporterListener.class, LISTENER_KEY, config.getListener());

validateAbstractInterfaceConfig(config);

Expand All @@ -337,7 +336,7 @@ public static void validateServiceConfig(ServiceConfig config) {
}

public static void validateReferenceConfig(ReferenceConfig config) {
checkMultiExtension(InvokerListener.class, "listener", config.getListener());
checkMultiExtension(InvokerListener.class, LISTENER_KEY, config.getListener());
checkKey(VERSION_KEY, config.getVersion());
checkKey(GROUP_KEY, config.getGroup());
checkName(CLIENT_KEY, config.getClient());
Expand Down

0 comments on commit 91989ca

Please sign in to comment.