AlexStocks commented on code in PR #1070:
URL:
https://github.com/apache/incubator-seata-go/pull/1070#discussion_r3004224112
##########
pkg/remoting/getty/readwriter.go:
##########
@@ -212,7 +212,7 @@ func decodeHeapMap(in *bytes.ByteBuffer, length uint16)
map[string]string {
valueLength := bytes.ReadUInt16(in)
if valueLength == 0 {
- key = ""
+ value = ""
Review Comment:
[P0] Bug 修复正确。原代码错误地将空值赋给 key 而非 value,导致 map 键值错乱。
--
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]