wwbmmm commented on PR #2946:
URL: https://github.com/apache/brpc/pull/2946#issuecomment-2798415146

   > 
参考RedisRequest/SerializedRequest等技巧,CompressCallback/DecompressCallback继承Message,就可作为参数传入CompressHandler接口。CompressHandler压缩/解压的时候:
   > 
   > 1. 如果是CompressCallback/DecompressCallback,则做特殊处理(调Convert进行序列化/反序列化)。
   > 2. 如果是pb格式,则执行原有逻辑。
   > 
   > 这个方案的兼容性会更好,不用改CompressHandler的接口,也不会影响用户逻辑中使用CompressHandler的逻辑。
   
   看起来好像可以


-- 
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: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to