[#xx] 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 3898fd6826
commit c4d603b4be
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.