You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by GitBox <gi...@apache.org> on 2021/12/21 12:12:33 UTC

[GitHub] [ratis] guohao-rosicky commented on a change in pull request #568: RATIS-1475. Use the stream level SlidingWindow.client in OrderedStrea…

guohao-rosicky commented on a change in pull request #568:
URL: https://github.com/apache/ratis/pull/568#discussion_r773084914



##########
File path: ratis-client/src/main/java/org/apache/ratis/client/impl/OrderedStreamAsync.java
##########
@@ -103,18 +106,27 @@ public String toString() {
   }
 
   private final DataStreamClientRpc dataStreamClientRpc;
-  private final SlidingWindow.Client<DataStreamWindowRequest, DataStreamReply> slidingWindow;
+
   private final Semaphore requestSemaphore;
   private final TimeDuration requestTimeout;
   private final TimeoutScheduler scheduler = TimeoutScheduler.getInstance();
+  private final ClientId clientId;
+
+  private final ConcurrentMap<ClientInvocationId, SlidingWindow.Client<DataStreamWindowRequest, DataStreamReply>>
+      slidingWindows = new ConcurrentHashMap<>();

Review comment:
       Has been modified @szetszwo 




-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@ratis.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org