aboutsummaryrefslogtreecommitdiff
path: root/src/archive/zip/reader.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2016-01-14 00:38:48 -0800
committerBrad Fitzpatrick <bradfitz@golang.org>2016-01-27 00:22:03 +0000
commitc736280e2250a9a873423f6c4923b6f4c1caf528 (patch)
tree4817fd0bc99c62d29e73c545cbb74282327c8ee9 /src/archive/zip/reader.go
parent1d901f55bd9d6ee12bc4692cd60a6a2311366799 (diff)
downloadgo-c736280e2250a9a873423f6c4923b6f4c1caf528.tar.gz
go-c736280e2250a9a873423f6c4923b6f4c1caf528.zip
archive/zip: clarify expectations of RegisterCompressor and RegisterDecompressor
Clarify that Compressor and Decompressor callbacks must support being invoked concurrently, but that the writer or reader returned need not be. Updates #8359 Change-Id: Ia407b581dd124185f165c25f5701018a8ce4357a Reviewed-on: https://go-review.googlesource.com/18627 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/archive/zip/reader.go')
-rw-r--r--src/archive/zip/reader.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/archive/zip/reader.go b/src/archive/zip/reader.go
index 9a0e20db1e..84a9d41888 100644
--- a/src/archive/zip/reader.go
+++ b/src/archive/zip/reader.go
@@ -118,8 +118,6 @@ func (z *Reader) init(r io.ReaderAt, size int64) error {
// RegisterDecompressor registers or overrides a custom decompressor for a
// specific method ID. If a decompressor for a given method is not found,
// Reader will default to looking up the decompressor at the package level.
-//
-// Must not be called concurrently with Open on any Files in the Reader.
func (z *Reader) RegisterDecompressor(method uint16, dcomp Decompressor) {
if z.decompressors == nil {
z.decompressors = make(map[uint16]Decompressor)