[#366] rpc/client: Inherit read-write gRPC timeout from client

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-12-24 13:18:57 +03:00 committed by Alex Vanin
parent aa53fb7131
commit 49db0cfa03
2 changed files with 20 additions and 2 deletions

View file

@ -15,7 +15,10 @@ func (c *Client) createGRPCClient() (err error) {
return
}
c.gRPCClient = grpc.New(grpc.WithClientConnection(c.conn))
c.gRPCClient = grpc.New(
grpc.WithClientConnection(c.conn),
grpc.WithRWTimeout(c.rwTimeout),
)
})
return