Fix service instance equals (#6787)

This commit is contained in:
ken.lj 2020-09-28 17:07:34 +08:00 committed by GitHub
parent e98a893387
commit 1693df214b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -70,10 +70,4 @@ public interface ServiceNameMapping {
return DEFAULT_MAPPING_GROUP + SLASH + serviceInterface;
}
static class MappingException extends RuntimeException {
public MappingException(String message) {
super(message);
}
}
}

View File

@ -184,7 +184,7 @@ public class DefaultServiceInstance implements ServiceInstance {
if (entry.getKey().equals(REVISION_KEY)) {
continue;
}
equals = equals && !entry.getValue().equals(that.getMetadata().get(entry.getKey()));
equals = equals && entry.getValue().equals(that.getMetadata().get(entry.getKey()));
}
return equals;