File tree 1 file changed +3
-3
lines changed
src/main/java/com/rabbitmq/stream/perf
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ public class StreamPerfTest implements Callable<Integer> {
101
101
private final CommandLine .HelpCommand helpCommand = new CommandLine .HelpCommand ();
102
102
103
103
int streamDispatching = 0 ;
104
- private volatile Codec codec ;
105
104
106
105
@ CommandLine .Option (
107
106
names = {"--uris" , "-u" },
@@ -388,8 +387,8 @@ public Integer call() throws Exception {
388
387
versionInformation (System .out );
389
388
System .exit (0 );
390
389
}
391
- // FIXME assign codec
392
- this . codec = createCodec (this .codecClass );
390
+
391
+ Codec codec = createCodec (this .codecClass );
393
392
394
393
ByteBufAllocator byteBufAllocator = ByteBufAllocator .DEFAULT ;
395
394
@@ -498,6 +497,7 @@ public Integer call() throws Exception {
498
497
.scheduledExecutorService (envExecutor )
499
498
.metricsCollector (metricsCollector )
500
499
.byteBufAllocator (byteBufAllocator )
500
+ .codec (codec )
501
501
.maxProducersByConnection (this .producersByConnection )
502
502
.maxTrackingConsumersByConnection (this .trackingConsumersByConnection )
503
503
.maxConsumersByConnection (this .consumersByConnection );
You can’t perform that action at this time.
0 commit comments