Skip to content

Commit

Permalink
optimize: optimize ProtocolV1SerializerTest failed
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly committed Jan 18, 2024
1 parent 4e27904 commit f4f3831
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ public class ProtocolV1Decoder extends LengthFieldBasedFrameDecoder {
public ProtocolV1Decoder() {
// default is 8M
this(ProtocolConstants.MAX_FRAME_LENGTH);
String serializerName = CONFIG.getConfig(ConfigurationKeys.SERIALIZE_FOR_RPC, SerializerType.SEATA.name());
this.serializerType = SerializerType.getByName(serializerName);
}

public ProtocolV1Decoder(int maxFrameLength) {
Expand All @@ -84,6 +82,8 @@ int lengthFieldLength, FullLength is int(4B). so values is 4
int initialBytesToStrip we will check magic code and version self, so do not strip any bytes. so values is 0
*/
super(maxFrameLength, 3, 4, -7, 0);
String serializerName = CONFIG.getConfig(ConfigurationKeys.SERIALIZE_FOR_RPC, SerializerType.SEATA.name());
this.serializerType = SerializerType.getByName(serializerName);
}

@Override
Expand Down

0 comments on commit f4f3831

Please sign in to comment.