sashapolo commented on a change in pull request #102:
URL: https://github.com/apache/ignite-3/pull/102#discussion_r628281404



##########
File path: 
modules/network/src/main/java/org/apache/ignite/network/scalecube/DelegatingTransportFactory.java
##########
@@ -35,50 +34,66 @@
     /** */
     private final ScaleCubeMessagingService messagingService;
 
+    /** Delegate transport factory. */
+    private final TransportFactory factory;
+
     /**
      * @param messagingService Messaging service.
+     * @param factory Delegate transport factory.
      */
-    DelegatingTransportFactory(ScaleCubeMessagingService messagingService) {
+    DelegatingTransportFactory(ScaleCubeMessagingService messagingService, 
TransportFactory factory) {
         this.messagingService = messagingService;
+        this.factory = factory;
     }
 
     /** {@inheritDoc} */
     @Override public Transport createTransport(TransportConfig config) {
-        var delegateFactory = TransportFactory.INSTANCE == null ? new 
TcpTransportFactory() : TransportFactory.INSTANCE;
-
-        Transport delegate = delegateFactory.createTransport(config);
+        Transport delegate = factory.createTransport(config);

Review comment:
       I don't see any difference, but it's ok, since this code will be removed 
anyway




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to