Use DeadlineExceeded error when creating stream failed by timeout #334

Merged
dstepanov-yadro merged 1 commit from dstepanov-yadro/frostfs-sdk-go:fix/api_client_timeout_error into master 2025-02-17 15:11:16 +00:00

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:
}