fix[net]: fixed bug in client initialization registry

This commit is contained in:
luca
2024-05-31 14:22:05 +08:00
parent 730929fbf1
commit 7a97238496
@@ -92,8 +92,10 @@ public class ConfigManager implements IConfigManager {
} else {
registry = (IRegistry) Class.forName(driverClassName).getDeclaredConstructor().newInstance();
}
registry.start();
} else {
registry = new ZookeeperRegistry();
}
registry.start();
} catch (Exception e) {
throw new RuntimeException("registry instance err", e);
}