Skip to content

Commit

Permalink
enhance: [GoSDK] Set default max send recv size
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 committed Oct 17, 2024
1 parent 4d08eec commit d744f82
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 d744f82

Please sign in to comment.