File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ import (
2828var (
2929 // TXTErrIgnore is set if TXT errors should be ignored ("GRPC_GO_IGNORE_TXT_ERRORS" is not "false").
3030 TXTErrIgnore = boolFromEnv ("GRPC_GO_IGNORE_TXT_ERRORS" , true )
31- // AdvertiseCompressors is set if registered compressor should be advertised
32- // ("GRPC_GO_ADVERTISE_COMPRESSORS" is not "false").
33- AdvertiseCompressors = boolFromEnv ("GRPC_GO_ADVERTISE_COMPRESSORS" , true )
3431 // RingHashCap indicates the maximum ring size which defaults to 4096
3532 // entries but may be overridden by setting the environment variable
3633 // "GRPC_RING_HASH_CAP". This does not override the default bounds
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ package grpcutil
2020
2121import (
2222 "strings"
23-
24- "google.golang.org/grpc/internal/envconfig"
2523)
2624
2725// RegisteredCompressorNames holds names of the registered compressors.
@@ -40,8 +38,5 @@ func IsCompressorNameRegistered(name string) bool {
4038// RegisteredCompressors returns a string of registered compressor names
4139// separated by comma.
4240func RegisteredCompressors () string {
43- if ! envconfig .AdvertiseCompressors {
44- return ""
45- }
4641 return strings .Join (RegisteredCompressorNames , "," )
4742}
You can’t perform that action at this time.
0 commit comments