diff options
author | 2023-11-13 11:08:02 +0100 | |
---|---|---|
committer | 2023-11-13 11:08:02 +0100 | |
commit | 7753f421323ad4b77c4f5c59dc000f8a6b1aa491 (patch) | |
tree | b4850aac8ed6185c3af249f1c119699775303c9b /vendor/google.golang.org/grpc/encoding/encoding.go | |
parent | [bugfix] support endless polls, and misskey's' method of inferring expiry in ... (diff) | |
download | gotosocial-7753f421323ad4b77c4f5c59dc000f8a6b1aa491.tar.xz |
[chore] update otel -> v1.20.0 (#2358)
Diffstat (limited to 'vendor/google.golang.org/grpc/encoding/encoding.go')
-rw-r--r-- | vendor/google.golang.org/grpc/encoding/encoding.go | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/vendor/google.golang.org/grpc/encoding/encoding.go b/vendor/google.golang.org/grpc/encoding/encoding.go index 69d5580b6..5ebf88d71 100644 --- a/vendor/google.golang.org/grpc/encoding/encoding.go +++ b/vendor/google.golang.org/grpc/encoding/encoding.go @@ -38,6 +38,10 @@ const Identity = "identity" // Compressor is used for compressing and decompressing when sending or // receiving messages. +// +// If a Compressor implements `DecompressedSize(compressedBytes []byte) int`, +// gRPC will invoke it to determine the size of the buffer allocated for the +// result of decompression. A return value of -1 indicates unknown size. type Compressor interface { // Compress writes the data written to wc to w after compressing it. If an // error occurs while initializing the compressor, that error is returned @@ -51,15 +55,6 @@ type Compressor interface { // coding header. The result must be static; the result cannot change // between calls. Name() string - // If a Compressor implements - // DecompressedSize(compressedBytes []byte) int, gRPC will call it - // to determine the size of the buffer allocated for the result of decompression. - // Return -1 to indicate unknown size. - // - // Experimental - // - // Notice: This API is EXPERIMENTAL and may be changed or removed in a - // later release. } var registeredCompressor = make(map[string]Compressor) |