enhance: [GoSDK] Set default max send recv size (#36945)

Related to milvus-io/milvus-sdk-go#831

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/36954/head
congqixia 2024-10-17 14:33:23 +08:00 committed by GitHub
parent aee61973fb
commit eb62433973
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,9 @@ var DefaultGrpcOpts = []grpc.DialOption{
},
MinConnectTimeout: 3 * time.Second,
}),
grpc.WithDefaultCallOptions(
grpc.MaxCallRecvMsgSize(math.MaxInt32), // math.MaxInt32 = 2147483647, 2GB - 1
),
}
// ClientConfig for milvus client.