Skip to content

Commit 5b6c296

Browse files
committed
Assign codec to environment in performance tool
Fixes #19
1 parent d715998 commit 5b6c296

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/rabbitmq/stream/perf/StreamPerfTest.java

+3-3
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)