Aias00 commented on PR #3439:
URL: https://github.com/apache/dubbo-go/pull/3439#issuecomment-4738297038

   > 这版把一个很小的 sticky 状态抽成了 `atomic.Value` + `stickyInvokerWrapper` + 
getter/setter,太java了,不太像 Go。这里其实只需要一个并发安全的指针状态,建议直接用 `atomic.Pointer` ,这里的 
holder 只是为了配合 atomic,业务语义上没必要。要么直接用更轻的并发原语,要么把 holder 压到只剩一个字段,别再往上叠 
getter/setter 了。
   > 
   > 别为了适配 `atomic.Value` 再多包一层。顺手也建议把 `BaseClusterInvoker` 
的使用方式收敛成只按指针持有,避免后面被值拷贝埋坑。
   
   好 我处理下


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