Add etcd as a service discovery mechanism

This commit is contained in:
skiffer-git
2024-05-13 15:04:59 +08:00
parent a546f21556
commit 5a976e3ef7
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -107,8 +107,9 @@ func (r *SvcDiscoveryRegistryImpl) GetConns(ctx context.Context, serviceName str
return nil, err
}
conns = append(conns, conn)
fmt.Println("GetConns detail ", *conn)
}
fmt.Println("GetConns number ", len(conns))
return conns, nil
}