AlexStocks commented on code in PR #982:
URL: https://github.com/apache/dubbo-go-pixiu/pull/982#discussion_r4523809898


##########
pkg/adapter/dubboregistry/registry/nacos/registry.go:
##########
@@ -55,7 +55,22 @@ func (n *NacosRegistry) DoSubscribe() error {
 }
 
 func (n *NacosRegistry) DoUnsubscribe() error {
-       panic("implement me")
+       // Stop the background listener first (it drains its watch goroutine), 
then

Review Comment:
   同类冲突在 `admin/controller/auth/auth_test.go` 上也成立,对象是 #992 而不是 #980。补充实测证据。
   
   **验证方法与结果**:以 `00ebd8204f` 的该文件为 base,对本 PR head `76c11f033c` 与 #992 head 
`3f53c83ef7` 的两版做三方合并:
   
   ```
   git merge-file -p auth_982.go auth_base.go auth_992.go > merged.go
   # exit 6,merged.go 里 6 处 <<<<<<< 冲突
   ```
   
   **为什么必然冲突**:两版对同样的 5 处 fixture 用了互斥写法——本 PR 是「先建字面量再赋值字段」,#992 是新增 
`newTestClaims(ttl)` 辅助函数并全部改为调用它;#992 还在 
`TestParseTokenRejectsUnexpectedSigningMethod` 之前插入了该函数,与本 PR 的上下文行重叠。`diff` 
也显示两版最终文件不同(md5 `1f5f8a79` vs `231cee26`)。
   
   **影响**:#982 与 #992 谁先合,另一个都要手工解 6 处冲突;若按行内冲突草率取舍,容易把 `ExpiresAt` 的 
`-time.Hour`/`time.Hour` 取值改错,使过期/刷新用例失去意义。#980 继承本 PR 的版本,因此冲突在整条堆叠链上都存在。
   
   **建议**:本 PR 也改用 #992/#1062 的 `newTestClaims` 写法(或等 #1062 合入 develop 后直接丢弃这段 
fixture 改动),三处统一后即可无冲突。



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