forked from TrueCloudLab/frostfs-sdk-go
[#287] client: Pass grpc.CallOption
options on dial
Signed-off-by: Aleksey Savchuk <a.savchuk@yadro.com>
This commit is contained in:
parent
71f9abaf4b
commit
a8824fed89
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue