Skip to content

Commit

Permalink
enhance: [GoSDK] Set default max send recv size (#36945)
Browse files Browse the repository at this point in the history
Related to milvus-io/milvus-sdk-go#831

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Oct 17, 2024
1 parent aee6197 commit eb62433
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/client_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit eb62433

Please sign in to comment.