slievrly commented on code in PR #6554:
URL: https://github.com/apache/incubator-seata/pull/6554#discussion_r1603307740
##########
core/src/main/java/org/apache/seata/core/protocol/ProtocolConstants.java:
##########
@@ -76,7 +76,10 @@ public interface ProtocolConstants {
*
* @see SerializerType#SEATA
*/
- byte CONFIGURED_CODEC =
SerializerServiceLoader.getSupportedSerializers().iterator().next().getCode();
+ byte CONFIGURED_CODEC = SerializerType
+ .getByName(ConfigurationFactory.getInstance()
+ .getConfig(ConfigurationKeys.SERIALIZE_FOR_RPC,
SerializerType.SEATA.name()))
Review Comment:
ConfigurationKeys.SERIALIZE_FOR_RPC allows configuring multiple serializers
separated by commas.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]