- 从 GetDialInsecure函数的签名中删除了未使用的 clientName 参数 - 此更改简化了函数接口,消除了潜在的混淆因素
@@ -27,7 +27,6 @@ type DialOption struct {
func GetDialInsecure(
r *registry.Registry,
- clientName string,
endpointNameKey string, option *DialOption) (*grpc2.ClientConn, error) {
option = checkOption(option)
endpoint := grpc.WithEndpoint(endpointNameKey)