Sfoglia il codice sorgente

refactor(grpc/client): 移除 GetDialInsecure 函数中的冗余参数 clientName

- 从 GetDialInsecure函数的签名中删除了未使用的 clientName 参数
- 此更改简化了函数接口,消除了潜在的混淆因素
dcsunny 4 mesi fa
parent
commit
b2e533cc61
1 ha cambiato i file con 0 aggiunte e 1 eliminazioni
  1. 0 1
      grpc/client.go

+ 0 - 1
grpc/client.go

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