[#287] client: Pass grpc.CallOption options on dial

Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
Aleksey Savchuk 2024-10-16 18:13:57 +03:00
parent 71f9abaf4b
commit a8824fed89
Signed by: a-savchuk
GPG key ID: 70C0A7FF6F9C4639

View file

@ -96,6 +96,7 @@ func (c *Client) Dial(ctx context.Context, prm PrmDial) error {
client.WithDialTimeout(prm.DialTimeout),
client.WithRWTimeout(prm.StreamTimeout),
client.WithGRPCDialOptions(prm.GRPCDialOptions),
client.WithGRPCCallOptions(prm.GRPCCallOptions),
)...)
c.setFrostFSAPIServer((*coreServer)(&c.c))
@ -213,6 +214,7 @@ type PrmDial struct {
StreamTimeout time.Duration
GRPCDialOptions []grpc.DialOption
GRPCCallOptions []grpc.CallOption
}
// SetServerURI sets server URI in the FrostFS network.