WIP: Use DeadlineExceeded error when creating stream failed by timeout support #335

Draft
dstepanov-yadro wants to merge 1 commit from dstepanov-yadro/frostfs-sdk-go:fix/api_client_timeout_error_support into support/v1.0.0-rc.6

View file

@ -101,7 +101,7 @@ func (c *Client) initInternal(info common.CallMethodInfo, opts ...CallOption) (*
if res.stream != nil && res.err == nil {
_ = res.stream.CloseSend()
}
return nil, context.Canceled
return nil, context.DeadlineExceeded
case res = <-newStreamCh:
}