Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Okstad <pokstad@gitlab.com>2021-02-26 01:40:48 +0300
committerPaul Okstad <pokstad@gitlab.com>2021-02-26 01:40:48 +0300
commite7e5d91b025d7dae1517d0d177a23928969878b0 (patch)
tree8d34fa7f1ca2dbea5924aae74b70ee5859a0d4a4
parentaeec1e34a8f0fc6b453b7f091e3712f17956b580 (diff)
Deprecate streamio funcs soon to be removedpo-deprecate-streamio-funcs
In anticipation of the removal of certain redundant streamio methods, this commit warns users that those methods will be removed in v14.0. Related to https://gitlab.com/gitlab-org/gitaly/-/merge_requests/3201
-rw-r--r--streamio/stream.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/streamio/stream.go b/streamio/stream.go
index 85a325d84..e10306a43 100644
--- a/streamio/stream.go
+++ b/streamio/stream.go
@@ -61,6 +61,7 @@ func (rr *receiveReader) Read(p []byte) (int, error) {
}
// WriteTo implements io.WriterTo.
+// Deprecated: will be removed in v14. Use io.Copy instead.
func (rr *receiveReader) WriteTo(w io.Writer) (int64, error) {
countMethod("reader.WriteTo")
@@ -149,6 +150,7 @@ func (sw *sendWriter) Write(p []byte) (int, error) {
}
// ReadFrom implements io.ReaderFrom.
+// Deprecated: will be removed in v14. Use io.Copy instead.
func (sw *sendWriter) ReadFrom(r io.Reader) (int64, error) {
countMethod("writer.ReadFrom")