File tree Expand file tree Collapse file tree 2 files changed +2
-239
lines changed
resp-decoder/src/main/java/org/infinispan/server/resp Expand file tree Collapse file tree 2 files changed +2
-239
lines changed Original file line number Diff line number Diff line change 1010
1111@ State (Scope .Benchmark )
1212public class NettyChannelState {
13- public enum DECODER {
14- LETTUCE ,
15- GENERATED
16- }
17-
18- @ Param
19- public GetSetState .DECODER decoderToUse ;
20-
2113 public EmbeddedChannel channel ;
2214
2315 @ Setup
@@ -28,15 +20,7 @@ public void initializeState() {
2820
2921 OurRespHandler ourRespHandler = new OurRespHandler ();
3022
31- switch (decoderToUse ) {
32- case LETTUCE :
33- channel .pipeline ()
34- .addLast (new RespLettuceHandler (ourRespHandler ));
35- break ;
36- case GENERATED :
37- channel .pipeline ()
38- .addLast (new RespDecoder (ourRespHandler ));
39- break ;
40- }
23+ channel .pipeline ()
24+ .addLast (new RespDecoder (ourRespHandler ));
4125 }
4226}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments