AsperforMias opened a new pull request, #3807:
URL: https://github.com/apache/dubbo-go/pull/3807

   ### Description
   Fixes #3804
   
   dubbo-go 注册的实例元数据里没有 `timestamp`,Admin 读不到注册时间,所以把实例显示为 `UnRegistered`。
   
   这个 PR 在 `createInstance` 里写入 `timestamp`,单位是毫秒,和 Admin 的 `time.UnixMilli` 
解析以及 Java 的写法一致。只改这一个字段,dubbo-go 其他地方的时间戳仍然是秒。
   
   本地用 Nacos 应用级发现加 Admin develop 验证过:
   - develop:没有 `timestamp`,`registerState=UnRegistered`,`registerTime` 为空
   - 写秒:`timestamp=1794496236`,Admin 解析出来是 1970 年
   - 写毫秒(本 
PR):`timestamp=1794496237887`,`registerState=Registered`,`registerTime` 是当前时间
   
   单测检查了写入的 `timestamp` 是毫秒,落在注册前后的时间范围内。
   
   ### Checklist
   - [x] I confirm the target branch is `develop`
   - [x] I have run `make fmt` to format my code
   - [x] I have run `make test` to run local tests
   - [x] I have added tests that prove my fix is effective or that my feature 
works
   


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