@@ -109,7 +109,7 @@ public static void main(String[] args) {
109109 if (prefetchCount > 0 ) channel .basicQos (prefetchCount );
110110 channel .basicConsume (queueName , autoAck , consumer );
111111 channel .queueBind (queueName , exchangeName , id );
112- Thread t =
112+ Thread t =
113113 new Thread (new Consumer (consumer , id ,
114114 consumerTxSize , autoAck ,
115115 stats , timeLimit ));
@@ -125,7 +125,7 @@ public static void main(String[] args) {
125125 Channel channel = conn .createChannel ();
126126 if (producerTxSize > 0 ) channel .txSelect ();
127127 channel .exchangeDeclare (exchangeName , exchangeType );
128- Thread t =
128+ Thread t =
129129 new Thread (new Producer (channel , exchangeName , id ,
130130 flags , producerTxSize ,
131131 1000L * samplingInterval ,
@@ -361,7 +361,7 @@ public void run() {
361361 int msgSeq = d .readInt ();
362362 long msgNano = d .readLong ();
363363 long nano = System .nanoTime ();
364-
364+
365365 Envelope envelope = delivery .getEnvelope ();
366366
367367 if (!autoAck ) {
@@ -422,7 +422,7 @@ private void reset(long t) {
422422
423423 public synchronized void collectStats (long now , long latency ) {
424424 msgCount ++;
425-
425+
426426 if (latency > 0 ) {
427427 minLatency = Math .min (minLatency , latency );
428428 maxLatency = Math .max (maxLatency , latency );
@@ -437,15 +437,15 @@ public synchronized void collectStats(long now, long latency) {
437437 " msg/s" +
438438 (latencyCount > 0 ?
439439 ", min/avg/max latency: " +
440- minLatency /1000L + "/" +
440+ minLatency /1000L + "/" +
441441 cumulativeLatency / (1000L * latencyCount ) + "/" +
442442 maxLatency /1000L + " microseconds" :
443443 "" ));
444444 reset (now );
445445 }
446-
446+
447447 }
448-
448+
449449 }
450450
451451}
0 commit comments