diff --git a/core/src/main/java/com/alibaba/nacos/core/distributed/ProtocolManager.java b/core/src/main/java/com/alibaba/nacos/core/distributed/ProtocolManager.java index 7b35d645f..af518582d 100644 --- a/core/src/main/java/com/alibaba/nacos/core/distributed/ProtocolManager.java +++ b/core/src/main/java/com/alibaba/nacos/core/distributed/ProtocolManager.java @@ -115,7 +115,7 @@ public class ProtocolManager extends MemberChangeListener implements DisposableB Class configType = ClassUtils.resolveGenericType(protocol.getClass()); Config config = (Config) ApplicationUtils.getBean(configType); injectMembers4AP(config); - protocol.init((config)); + protocol.init(config); ProtocolManager.this.apProtocol = protocol; }); } @@ -125,7 +125,7 @@ public class ProtocolManager extends MemberChangeListener implements DisposableB Class configType = ClassUtils.resolveGenericType(protocol.getClass()); Config config = (Config) ApplicationUtils.getBean(configType); injectMembers4CP(config); - protocol.init((config)); + protocol.init(config); ProtocolManager.this.cpProtocol = protocol; }); }