moesakura commented on issue #1683:
URL: 
https://github.com/apache/incubator-brpc/issues/1683#issuecomment-1021832025


   > 用的是那个method?贴下设置RedisRequest的代码?二进制字符串格式化造成了截断? 参考 
https://github.com/apache/incubator-brpc/blob/master/src/brpc/redis.h#L61
   
   本来想提供单测的... 在验证的过程中发现了是我自己的问题
   如果db不是0 每次请求都需要select一次
   之前我只在初始化的时候select了一次
   
   > req.AddCommand("select %s", db.c_str());
   req.AddCommand("GET %s", key.c_str());
   
   
   是否有更优雅的写法?


-- 
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]

Reply via email to