Skip to content

Commit

Permalink
moved start
Browse files Browse the repository at this point in the history
  • Loading branch information
scottf committed Oct 8, 2024
1 parent f014d17 commit d42a65b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,9 @@ public void _requestMessageBatch(String streamName, MessageBatchGetRequest messa
String requestSubject = prependPrefix(String.format(JSAPI_DIRECT_GET, streamName));
conn.publish(requestSubject, replyTo, messageBatchGetRequest.serialize());

long start = System.currentTimeMillis();
long maxTimeMillis = getTimeout().toMillis();
long timeLeft = maxTimeMillis;
long start = System.currentTimeMillis();
while (true) {
Message msg = sub.nextMessage(timeLeft);
if (msg == null) {
Expand Down

0 comments on commit d42a65b

Please sign in to comment.