AlexStocks commented on code in PR #2960:
URL: https://github.com/apache/dubbo-go/pull/2960#discussion_r2246695624


##########
remoting/exchange_client.go:
##########
@@ -61,7 +61,7 @@ type ExchangeClient struct {
        ConnectTimeout time.Duration  // timeout for connecting server
        address        string         // server address for dialing. The 
format: ip:port
        client         Client         // dealing with the transport
-       init           bool           // the tag for init.
+       init           uatomic.Bool   // the tag for init.

Review Comment:
   先看下是否存在并行的情况,如果确实有并行竞争,再用 atomic var



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