yumosx commented on code in PR #901:
URL: 
https://github.com/apache/incubator-seata-go/pull/901#discussion_r2384606008


##########
pkg/integration/gin/gin_transaction_middleware.go:
##########
@@ -36,8 +36,8 @@ func TransactionMiddleware() gin.HandlerFunc {
                        xid = ctx.GetHeader(constant.XidKeyLowercase)
                }
 
-               if len(xid) == 0 {
-                       log.Errorf("Gin: header not contain header: %s, global 
transaction xid", constant.XidKey)
+               if xid == "" {

Review Comment:
   雨哥, 我好奇问下, 这样写是为啥?



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