Skip to content

Commit

Permalink
feat: support lossless online/offline (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyuwei01 committed Jul 16, 2024
1 parent 4888073 commit deb5421
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public class NacosRegistrationTransformer implements RegistrationTransformer {

@Override
public void transformCustom(DefaultInstance instance, Registration registration) {
if (registration instanceof NacosRegistration nacosRegistration) {
if (registration instanceof NacosRegistration) {
NacosRegistration nacosRegistration = (NacosRegistration) registration;
NacosDiscoveryProperties nacosDiscoveryProperties = nacosRegistration.getNacosDiscoveryProperties();
String namespace = nacosDiscoveryProperties.getNamespace();
if (StringUtils.isBlank(namespace)) {
Expand Down

0 comments on commit deb5421

Please sign in to comment.