增强Stream消息处理日志:添加接收/处理/panic详细日志

This commit is contained in:
Cold
2026-01-06 17:23:03 +08:00
committed by 张斌
parent cf27eee0ea
commit d8e848a238
2 changed files with 14 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ func getLocalIP() (string, error) {
}
func getInstanceAddrByIp(ctx context.Context, ip string, services []gsvc.Service) (addr string) {
for _, s := range services {
if s.GetEndpoints()[0].Host() == addr {
if s.GetEndpoints()[0].Host() == ip {
addr = s.GetEndpoints()[0].String()
return
}