File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/rabbitmq/stream/perf Expand file tree Collapse file tree 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> {
101101 private final CommandLine .HelpCommand helpCommand = new CommandLine .HelpCommand ();
102102
103103 int streamDispatching = 0 ;
104- private volatile Codec codec ;
105104
106105 @ CommandLine .Option (
107106 names = {"--uris" , "-u" },
@@ -388,8 +387,8 @@ public Integer call() throws Exception {
388387 versionInformation (System .out );
389388 System .exit (0 );
390389 }
391- // FIXME assign codec
392- this . codec = createCodec (this .codecClass );
390+
391+ Codec codec = createCodec (this .codecClass );
393392
394393 ByteBufAllocator byteBufAllocator = ByteBufAllocator .DEFAULT ;
395394
@@ -498,6 +497,7 @@ public Integer call() throws Exception {
498497 .scheduledExecutorService (envExecutor )
499498 .metricsCollector (metricsCollector )
500499 .byteBufAllocator (byteBufAllocator )
500+ .codec (codec )
501501 .maxProducersByConnection (this .producersByConnection )
502502 .maxTrackingConsumersByConnection (this .trackingConsumersByConnection )
503503 .maxConsumersByConnection (this .consumersByConnection );
You can’t perform that action at this time.
0 commit comments